• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Queston about thread viewer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Queston about thread viewer (From: "Brant Sears" <email@hidden>)

  • Prev by Date: Queston about thread viewer
  • Next by Date: RE: Queston about thread viewer
  • Previous by thread: Queston about thread viewer
  • Next by thread: RE: Queston about thread viewer
  • Index(es):
    • Date
    • Thread