• 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
Singleton instances and multithreading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Singleton instances and multithreading
      • From: Christopher Lloyd <email@hidden>
    • Re: Singleton instances and multithreading
      • From: "Axel 'Mikesch' Katerbau" <email@hidden>
  • Prev by Date: Multiple Document Help!
  • Next by Date: Are Cocoa Java Apps Compiled?
  • Previous by thread: Multiple Document Help!
  • Next by thread: Re: Singleton instances and multithreading
  • Index(es):
    • Date
    • Thread