• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [long] Re: Running processes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >[long] Re: Running processes (From: Development <email@hidden>)

  • Prev by Date: Re: Way to control another App's window
  • Next by Date: Re: [long] Re: Running processes
  • Previous by thread: [long] Re: Running processes
  • Next by thread: Re: [long] Re: Running processes
  • Index(es):
    • Date
    • Thread