• 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
Thread Safety of performSelector:withObject:afterDelay:?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Thread Safety of performSelector:withObject:afterDelay:?


  • Subject: Thread Safety of performSelector:withObject:afterDelay:?
  • From: Jim Correia <email@hidden>
  • Date: Wed, 23 Nov 2005 12:45:16 -0500

In the thread safety summary at

http://developer.apple.com/documentation/Cocoa/Conceptual/ Multithreading/articles/CocoaSafety.html

NSObject is listed as being thread safe. Does this mean that

-[NSObject performSelector:withObject:afterDelay:]

is also thread safe, even though the implementation surely involves the run loop, which isn't thread safe?

Is the delayed invocation scheduled on the current run loop, or the main run loop?

Finally, is there a built-in "Cocoa" way to determine if I am currently executing in the context of the main thread? Or must I write my own convenience wrapper for that test?

Thanks,
Jim


_______________________________________________ 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
  • Follow-Ups:
    • Re: Thread Safety of performSelector:withObject:afterDelay:?
      • From: Julien Jalon <email@hidden>
  • Prev by Date: Re: NSApp sendAction
  • Next by Date: Re: Reverse value transformation with different class?
  • Previous by thread: Mouse events and offscreen windows
  • Next by thread: Re: Thread Safety of performSelector:withObject:afterDelay:?
  • Index(es):
    • Date
    • Thread