[Python-Dev] pthreads question: typedef ??? pthread_t and hacky return statements (original) (raw)

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(pthreadt) if pthread.h exists and test:

#if SIZEOFPTHREADT < SIZEOFLONG return (long)threadid; #endif

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