Re: Queston about thread viewer
Re: Queston about thread viewer
- Subject: Re: Queston about thread viewer
- From: Shawn Erickson <email@hidden>
- Date: Tue, 29 Nov 2005 09:10:23 -0800
On 11/29/05, Brant Sears <email@hidden> wrote:
> How can I tell which thread is which using Thread Viewer?
>
> When I do something like this:
>
> NSLog([[NSThread currentThread] description]);
>
> from my thread, I get a thread number like "3" or whatever. In ThreadViewer, I see numbers like "06707".
>
> Is there a pthreads API for getting a threadID that I should be using? pthread_getthreadid_np() does not seem to be supported.
>
> Thanks for any assitance in proper use of Thread Viewer with NSThread.
Not sure myself... but what happens if you call pthread_self which
returns you the current threads id as a pthread_t and dump that in hex
form (I believe it is an address to an opaque structure).
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden