Singleton instances and multithreading
Singleton instances and multithreading
- Subject: Singleton instances and multithreading
- From: Rob Rix <email@hidden>
- Date: Wed, 11 Jul 2001 00:33:36 -0400
Well, I figured I'd join in the current rash of multithreading questions
to clarify something I don't quite understand about multithreading: can I
safely call class methods from spawned threads?
Specifically, I want to call the +sharedInstance method on a class I've
developed for an application. Can I do that and then safely message the
returned object without using DO?
-- Rob
CocoaDev.com