Re: NSNotificationQueue and multithreading
Re: NSNotificationQueue and multithreading
- Subject: Re: NSNotificationQueue and multithreading
- From: Julien Guimont <email@hidden>
- Date: Sat, 7 Feb 2004 19:35:18 -0500
Hello,
I just made something like that in my app. I found this doc
file:///Developer/Documentation/Cocoa/Conceptual/Notifications/Tasks/
Threading.html#//apple_ref/doc/uid/20001289 . It should be helpful for
your problem.
It does not use NotificationQueues but does some multi threading
notifications.
Julien Guimont
www.juggysoft.com
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
_______________________________________________
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.