• 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: Integrating NSOutputStream and NSOperation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Integrating NSOutputStream and NSOperation


  • Subject: Re: Integrating NSOutputStream and NSOperation
  • From: Motti Shneor <email@hidden>
  • Date: Tue, 17 Nov 2015 08:04:19 +0200


On Nov 17, 2015, at 07:28, Jens Alfke <email@hidden> wrote:


On Nov 13, 2015, at 6:38 AM, Motti Shneor <email@hidden> wrote:

I know NSOperationQueue has an accessor for its underlying dispatch_queue, but actual NSOperations are spawned in arbitrary threads - so I'm not sure about their dispatch_queue (if they run on a dispatch_queue at all). 

The NSOperationQueue’s dispatch queue is the queue that its operations run on.

—Jens

But what that means? Will stream events be queued AFTER all pending NSOperations?

That will block (and hang) my mechanism, because my halfway-halted operation awaits the stream event (SpaceAvailable) to continue (thus blocking the operation queue) while the event is waiting down the queue for that operation to finish…

My NSOperationQueue is serial (one operation at a time) but is it blocking its dispatch_queue? I don’t know. It’s fairly easy to test, though - I think I’ll just try.

Wrapping the stream event with a high-priority NSOperation won’t help either, for the same reason.



Motti Shneor, 

CEO,  suMac LTD.

Software Development for the Macintosh


Home/Office Address: 34 Emek-Ha-Ella St. Appt.1 Modiin, ISRAEL, 71723

Home/Office Tel/Fax: +972-8-9267730

Home eMail: email@hidden 
Office eMail: email@hidden
Mobile phone: +972-54-3136621

---

ceterum censeo microsoftiem delendam esse

---




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Integrating NSOutputStream and NSOperation (From: Motti Shneor <email@hidden>)
 >Re: Integrating NSOutputStream and NSOperation (From: Jens Alfke <email@hidden>)
 >Re: Integrating NSOutputStream and NSOperation (From: Motti Shneor <email@hidden>)
 >Re: Integrating NSOutputStream and NSOperation (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Integrating NSOutputStream and NSOperation
  • Next by Date: network configuration change notification
  • Previous by thread: Re: Integrating NSOutputStream and NSOperation
  • Next by thread: Re: Integrating NSOutputStream and NSOperation
  • Index(es):
    • Date
    • Thread