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

NSNotificationQueue and multithreading


  • Subject: NSNotificationQueue and multithreading
  • From: Glen Low <email@hidden>
  • Date: Sun, 8 Feb 2004 07:25:59 +0800

Dear All:

I need to send a NSNotification from a different thread of execution. Are the various NSNotificationQueue methods like dequeueNotification and enqueueNotification thread-safe -- i.e. from thread A, if I have thread B's notification queue, can I simply enqueue a notification there and thread B will reliably get the notification? Or assuming I don't want to use NSDistributedNotificationQueue (since I'm not crossing tasks, only threads), is there some other method to get what I want?

Cheers, Glen Low


---
pixelglow software | simply brilliant stuff
www.pixelglow.com
_______________________________________________
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.

  • Prev by Date: Re: Using NSSearchField and remaining Jaguar compatible?
  • Next by Date: Re: how to get a MenuItem with NSSlider and Description
  • Previous by thread: Re: how to get a MenuItem with NSSlider and Description
  • Next by thread: Re: NSNotificationQueue and multithreading
  • Index(es):
    • Date
    • Thread