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

Tim Peters tim_one@email.msn.com
2000年8月18日 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.

AltStyle によって変換されたページ (->オリジナル) /