tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pthread_getspecific without prior pthread_setspecific



martin%duskware.de@localhost (Martin Husemann) writes:

>On Sun, May 17, 2015 at 06:15:00PM +0000, Michael van Elst wrote:
>> That's perfectly valid. pthread_getspecific is supposed to return NULL
>> until the specific data for the key has been set by a call to
>> pthread_setspecific.

>As long as the key has been created - which it has not in the case at hand,
>or pt_havespecific would be true!

How do you know that the key has not been created?

-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index