• 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
Singletons and Threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Singletons and Threads


  • Subject: Singletons and Threads
  • From: "Randall Wood" <email@hidden>
  • Date: Fri, 14 Sep 2007 06:45:13 -0400

If I have a class that is a singleton, and create the first instance in a
thread using a standard [sharedInstance] method, will calling
[sharedInstance] in another thread use that single instance, or will each
thread get its own instance of the class?
Searching about, I can't find an explicit answer to this question.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Singletons and Threads
      • From: "Clark Cox" <email@hidden>
    • Re: Singletons and Threads
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Getting access to the name of a button?
  • Next by Date: Re: Singletons and Threads
  • Previous by thread: Re: Getting access to the name of a button?
  • Next by thread: Re: Singletons and Threads
  • Index(es):
    • Date
    • Thread