• 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: Are immutable singletons thread safe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Are immutable singletons thread safe? (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: Image expands with compression
  • Next by Date: Re: [ANN] Shovel - Third-Party "Software Update"
  • Previous by thread: Are immutable singletons thread safe?
  • Next by thread: Re: Are immutable singletons thread safe?
  • Index(es):
    • Date
    • Thread