> On Nov 17, 2015, at 07:28, Jens Alfke <j...@mooseyard.com> wrote:
> 
> 
>> On Nov 13, 2015, at 6:38 AM, Motti Shneor <su...@bezeqint.net 
>> <mailto:su...@bezeqint.net>> 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: motti.shn...@gmail.com 
Office eMail: su...@bezeqint.net
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      (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to