• 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: Is Apple's singleton sample code correct?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is Apple's singleton sample code correct?


  • Subject: Re: Is Apple's singleton sample code correct?
  • From: j o a r <email@hidden>
  • Date: Sat, 3 Dec 2005 01:29:44 +0100


On 3 dec 2005, at 01.19, Shaun Wexler wrote:

Multithreading is the heart of Mac OS X. App's which only run single-threaded when there is an opportunity for multitasking are dragging down Apple and the Macintosh platform.

Sure, but thread safety should still be entitled to a completely separate chapter of it's own - in both documentation and discussions. It's no use sprinkling some @synchronized here and there and expect to be thread safe.

Attempting to make all your code thread safe "just in case" is a waste of time, and right out asking for bugs.

Remember that just because you write your code "single-threaded", it doesn't mean that a plug-in or framework won't create additional threads in your process: APE, for example. CoreAudio, MIDI, QuickTime. AppKit threads for pulsing Aqua buttons.

These threads will not access your code, so that's a moot point.


///////////////////////

How about ending this thread soon? Please!

///////////////////////


j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >RE: Is Apple's singleton sample code correct? (From: Jeff Laing <email@hidden>)
 >Re: Is Apple's singleton sample code correct? (From: mmalcolm crawford <email@hidden>)
 >Re: Is Apple's singleton sample code correct? (From: Dietmar Planitzer <email@hidden>)
 >Re: Is Apple's singleton sample code correct? (From: Shaun Wexler <email@hidden>)
 >Re: Is Apple's singleton sample code correct? (From: Dietmar Planitzer <email@hidden>)
 >Re: Is Apple's singleton sample code correct? (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Re: Is Apple's singleton sample code correct?
  • Next by Date: NSXMLNode's `stringValue' method and memory leaks
  • Previous by thread: Re: Is Apple's singleton sample code correct?
  • Next by thread: Re: Is Apple's singleton sample code correct?
  • Index(es):
    • Date
    • Thread