Re: Simple message passing between threads
Re: Simple message passing between threads
- Subject: Re: Simple message passing between threads
- From: Gareth White <email@hidden>
- Date: Thu, 14 Jun 2001 02:16:48 +0800
At 6:43 PM -0700 12/6/2001, Richard Schreyer wrote:
>
I have a secondary thread I use to do calculations, and I need to send a
>
message to the main thread when the second thread completes it's job,
>
and terminates.
>
>
Distributed Objects seems like a little much for this single use. There
>
have been several times has come up previously on the list, but looking
>
over those has still left me clueless how to do this.
The most elegant way I've found to do this is to use OFMessageQueue from
the OmniFoundation framework. See this thread for more info:
http://www.omnigroup.com/mailman/archive/macosx-dev/2001-February/009674.html.
Hope that helps,
Gareth