Re: pthread portability

Поиск
Список
Период
Сортировка
От Christoph Moench-Tegeder
Тема Re: pthread portability
Дата
Msg-id 20160329070134.GA1598@elch.exwg.net
обсуждение исходный текст
Ответ на Re: pthread portability  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: pthread portability  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
## Alvaro Herrera (alvherre@2ndquadrant.com):

> > The below diff fixes one problem: you can't compare pthread_t values
> > directly. Only the function pthread_equal(3) is defined. Direct
> > comparison usually works because most implementations define pthread_t
> > as an integer type.
> 
> So is there a platform where this assumption doesn't hold?

E.g. FreeBSD has "typedef struct pthread *pthread_t;" with a
non-trivial "struct pthread".

Regards,
Christoph

-- 
Spare Space



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: Alter or rename enum value
Следующее
От: Christian Ullrich
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Sync tzload() and tzparse() APIs with IANA release tzcode2016c.