Re: Thread_Id

Robert Hancock
2005-07-14T14:28:47Z

RVK wrote:
> Ian Campbell wrote:
>
>> On Thu, 2005-07-14 at 15:36 +0530, RVK wrote:
>>
>>
>>
>>> bits/pthreadtypes.h:150:typedef unsigned long int pthread_t;
>>>
>>
>>
>> That's an implementation detail which you cannot determine any
>> information from.
>>
>> What Arjan is saying is that pthread_t is a cookie -- this means that
>> you cannot interpret it in any way, it is just a "thing" which you can
>> pass back to the API, that pthread_t happens to be typedef'd to unsigned
>> long int is irrelevant.
>>
>>
>>
> Do you want to say for both 2.6.x and 2.4.x I should interpret that way ?
>
> rvk

Indeed, for ANY OS using pthreads it should be interpreted that way..