• 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: Setting thread name for debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting thread name for debugger


  • Subject: Re: Setting thread name for debugger
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 24 Feb 2010 15:12:43 -0500
  • Organization: Rogue Research Inc.

On 2/24/10 10:49 AM, Wade Tregaskis said:

>>> I am trying to get my threads' names to show up in the thread pop-up in
>>> Xcode's debugger, but it isn't working
>>
>> I think you need to use pthread_setname_np().  IIRC, it's also 10.6+.
>
>Indeed pthread_setname_np and -[NSThread setName:] are orthogonal.
>Performance and debug tools only know about the former.  That we have
>these two mechanisms that aren't synchronised is a known and unfortunate
>issue.

I also find it annoying that pthread_setname_np() doesn't take a
pthread_t as parameter, like on other OSes.  In most of the code I have,
this complicates things.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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

  • Follow-Ups:
    • Re: Setting thread name for debugger
      • From: Wade Tregaskis <email@hidden>
References: 
 >Setting thread name for debugger (From: Matt Gough <email@hidden>)
 >Re: Setting thread name for debugger (From: "Sean McBride" <email@hidden>)
 >Re: Setting thread name for debugger (From: Wade Tregaskis <email@hidden>)

  • Prev by Date: Re: Mixed CLI and Xcode Subversion use?
  • Next by Date: inline functions always inlined?
  • Previous by thread: Re: Setting thread name for debugger
  • Next by thread: Re: Setting thread name for debugger
  • Index(es):
    • Date
    • Thread