Re: pthread_t
Re: pthread_t
- Subject: Re: pthread_t
- From: Fritz Anderson <email@hidden>
- Date: Mon, 6 Oct 2008 15:00:41 -0500
On 6 Oct 2008, at 2:31 PM, Roland Silver wrote:
What is a pthread_t? Specifically, how do I print one using:
pthread_t pt;
...
NSLog(@"pthread_t pt = %?", pt);
I typed pthread_t into an Xcode editor window, and command-double-
clicked on it. This brought me to:
typedef __darwin_pthread_t pthread_t;
Further command-double-clicking showed that this was a pointer to a
struct, the contents of which I am sure are implementation-dependent,
and not to be relied on.
So treat it as a pointer, and use the "%p" format.
— F
--
Fritz Anderson -- Xcode 3 Unleashed: Now in its second printing -- <http://x3u.manoverboard.org/
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >pthread_t (From: Roland Silver <email@hidden>) |