[cpp-threads] Re: Thread API interface tweaks

Alexander Terekhov alexander.terekhov at gmail.com
Thu Aug 31 10:24:09 BST 2006


On 8/30/06, Howard Hinnant <hinnant at twcny.rr.com> wrote:
[...]
> A default constructed thread_id represents an id that is guaranteed
> to not be equal to any valid thread id.  I know this is easily
> implemented on the Mac (just assign NULL to the pointer).  I don't
> know that for other OS's.  But it appears (to me) to be an extremely
> useful detail

PTHREAD_NULL/pthread_null() was once discussed on opengroup's list
(along with pthread_hash() and pthread_less()/_compare()). IIRC, there
was no objections raised, but nobody bothered to formally propose it
for addition in the current round.

regards,
alexander.



More information about the cpp-threads mailing list