For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > June 2007 > Re: How to print out thread id from pthread_t









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: How to print out thread id from pthread_t
Golden California Girls

2007-06-23, 4:15 am

Eric Sosman wrote:
> Frank Cusack wrote On 06/18/07 12:28,:
>
> And even that won't always work: pthread_t is *really*
> opaque, and need not be a type to which a cast operator can
> be applied. On at least one implementation, pthread_t is
> a struct.
>


Isn't that actually a pointer to a struct?

Ian Collins

2007-06-23, 4:15 am

Golden California Girls wrote:
> Eric Sosman wrote:
> Isn't that actually a pointer to a struct?
>

It might be on some systems, but the point is it is an opaque type, so
it can be anything.

--
Ian Collins.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com