Re: Techniques for thread communication
Re: Techniques for thread communication
- Subject: Re: Techniques for thread communication
- From: Michael Schmidt <email@hidden>
- Date: Mon, 8 Sep 2003 12:14:59 +0200
- Organization: AbsInt GmbH
On Sun, 7 Sep 2003 22:02:11 -0600
Tom Harrington <email@hidden> wrote:
>
You cannot do #1, because it doesn't work this way. The docs for
>
NSNotification explain that:
>
>
"In a multithreaded application, notifications are always delivered in
>
the thread in which the notification was posted, which may not be the
>
same thread in which an observer registered itself."
>
>
So, if you post from the worker thread, you notify in the worker
>
thread, even if the registration happened in the main thread. The main
>
thread never knows that anything happened until it stumbles across
>
updated data.
AFAIR will distributed Notification centers work.
--
Michael Schmidt
_______________________________________________
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.