At Sat, 22 Dec 2007 23:15:58 +0100, Samuel Thibault wrote: > 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?
The implementation never returns a TID with a value of 0. Is this sufficient? Or do you need the implementation to somehow reject this invalid value? Neal _______________________________________________ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd