bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

invalid pthread_t value?


From: Samuel Thibault
Subject: invalid pthread_t value?
Date: Sat, 22 Dec 2007 23:15:58 +0100
User-agent: Mutt/1.5.12-2006-07-14

Hi,

The NSPR needs an invalid value for pthread_t, which the Hurd doesn't
officially have. I had proposed them to use -1 (since that would mean
that there are something like 2^32 threads running, which just can't
be...), but they don't seem to have accepted this (the patch seems to
have been turned into a #error instead... No actual mail feedback).

Since pthread_t is typedefed to int, maybe we can define
PTHREAD_THREADS_MAX to INT_MAX to actually set an official limit (that
limit exists anyway since above INT_MAX the comparisons in libpthread
become bogus), and then tell them they can really use -1?

Samuel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]