Re: [long] Re: Running processes
Re: [long] Re: Running processes
- Subject: Re: [long] Re: Running processes
- From: Scott Ribe <email@hidden>
- Date: Tue, 12 Sep 2006 10:46:43 -0600
- Thread-topic: [long] Re: Running processes
You've set it up to deadlock if there's more than 1 buffer's worth of data:
- background task is started, set up to post notifications to foreground
task as data is available
- foreground task blocks waiting for background task to complete
- background task gets data and posts notification, but when its read buffer
is full it will block while waiting for the foreground task to process the
notification
You either need run NSTask asynchronous with notifications, or synchronous,
not mixed like that.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden