Singletons and Threads
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