[Python-Dev] pthreads question: typedef ??? pthread_t and hacky return statements

Tim Peters tim_one@email.msn.com
Fri, 18 Aug 2000 14:24:57 -0400


[Trent Mick]
> I am inclined to agrre with Thomas and Greg on this one. Why not check for
> sizeof(pthread_t) if pthread.h exists and test:
>
> #if SIZEOF_PTHREAD_T < SIZEOF_LONG
>     return (long)threadid;
> #endif

Change "<" to "<=" and I won't gripe.