Re: pthread portability

From: Christoph Moench-Tegeder <cmt(at)burggraben(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pthread portability
Date: 2016-03-29 07:01:34
Message-ID: 20160329070134.GA1598@elch.exwg.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

## Alvaro Herrera (alvherre(at)2ndquadrant(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christian Ullrich 2016-03-29 07:03:09 Re: [COMMITTERS] pgsql: Sync tzload() and tzparse() APIs with IANA release tzcode2016c.
Previous Message Jim Nasby 2016-03-29 06:57:17 Re: Alter or rename enum value