Re: NSConnection and independant queuing
Re: NSConnection and independant queuing
- Subject: Re: NSConnection and independant queuing
- From: Wade Tregaskis <email@hidden>
- Date: Wed, 5 May 2004 13:30:57 +1000
That is, I want to enqueue tasks in the worker thread's runLoop.
My question is: will this work? the NSConnection documentation doesn't
make it clear whether the "oneway" keyword requires the target
thread's runLoop to actually consume the message before coming back
from the message send operation, or if it is just enqueuing it in the
target thread's incoming messages list (if such a thing exists).
The message will be queued by the receiver, in order of receipt,
pending dispatch at the next run through the run loop (note: you can't
extract pending messages manually). So, assuming your worker threads
use a run loop (or can be made to; a custom one per thread is trivial
to construct) you're quite set.
Wade Tregaskis (aim: wadetregaskis)
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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.