On Jun 04, 2008, at 13:32, Chuck Hill wrote:


On Jun 4, 2008, at 1:56 AM, Freddie Tilley wrote:

Is the java version of NSNotificationCenter thread safe?

What do you mean? What are you doing, and what do you expect the results to be?

Yes, it is used by WebObjects internally to broadcast EOF and other changes across threads.



And does it support posting from on thread to another similiar the Object-C version of NSDistributedNotificationCenter


Notifications are broadcast in the same thread context that they are sent in. It is up to the threads getting the notification to handle the appropriately for whatever work they are engaged in. I am not sure if that answers your question or not.

Chuck, could you clarify? I'm not sure I read you right. It is my assumption that the notification center does not do any thread handling whatsoever. Basically that the callback method is called on the same thread that posted the notification, without even considering any other threads involved. Is that what you're saying? I've always thought NSNotification center is a rather simple, straight-forward player.

F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to