On Tuesday Mar 28, 2000, Norman Shapiro wrote:

> [EMAIL PROTECTED] (John Rousseau) writes:
> >You could save the pointer in thread local storage, but I guarantee
> >that it won't be portable.
> >
> >Take a look at pthread_key_create, pthread_setspecific, et al. 
> >
> 
> Thanks much, that's exactly what  I need.
> 
> Would this work under green threads or just under native threads?

Those are native threads calls. LinuxThreads is a pthreads
(POSIX 1003.1c) implementation. I don't know much about green
threads at all except it is not a pthreads implementation. 

So, to answer your question, under native threads only. Green
threads most likely provides similar functionality, but with a
different API.

-John

----------------------------------------------------------------
John Rousseau                               [EMAIL PROTECTED]
SilverStream Software                                           
1 Burlington Woods                        Phone: +1 781 238 5564
Burlington, MA 01803                        Fax: +1 781 238 5499
----------------------------------------------------------------


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to