Re: Are immutable singletons thread safe?
Re: Are immutable singletons thread safe?
- Subject: Re: Are immutable singletons thread safe?
- From: Andrew Thompson <email@hidden>
- Date: Sun, 9 May 2004 09:39:35 -0400
If you can guarantee that the singletons are set up, fully initialized
and immutable before you start sharing them between threads, then you
should be OK.
An obvious way of doing this would be to create all of the singletons
in the application's main thread before you create any other threads.
On May 9, 2004, at 1:22 AM, Ken Tozier wrote:
Several of my classes and categories use immutable singletons to store
stuff and I'm wondering, if these classes are used in a thread, if I
would run into problems.
Thanks,
Ken
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside
(see you later space cowboy ...)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.