[[NSNotificationCenter defaultCenter] postNotificationName] from a thread?
[[NSNotificationCenter defaultCenter] postNotificationName] from a thread?
- Subject: [[NSNotificationCenter defaultCenter] postNotificationName] from a thread?
- From: Michael Rothwell <email@hidden>
- Date: Sat, 1 Nov 2003 15:12:40 -0500
I'm writing an application that has several worker threads and uses
notifications. i'm worried about thread safety. In the worker threads,
I'm sending notifications back to the main thread like this:
[[NSNotificationCenter defaultCenter]
postNotificationName:@"UPnPDiscovery" object:self userInfo:d];
The main thread has registered for these notifications, and runs a
method, etc.
Should I be doing something to ensure thread safety?
-Michael
_______________________________________________
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.