• 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: pthread_t
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: pthread_t
  • Next by Date: What happened to OSAScriptKit.ibplugin in 3.1.1. ?
  • Previous by thread: pthread_t
  • Next by thread: Re: pthread_t
  • Index(es):
    • Date
    • Thread