Codeux/Textual — pull request #307 by demosdemon (2012-08-07 07:44:15+00:00)
Title: Redo Message Queue system, did not handle bouncer floods very well

The main problem was the dispatch_once block that you had commented on, it wouldn't ever execute the loop again if the queue got to 25 items or more for the second time. That, and the runqueue was deadlocking on large queues.

This replaces the two dispatch_queues with a single NSOperationQueue with priority operations based on your previous priority setup.

The only thing I haven't figured out is how to implement the delay without using [NSThread sleep:], but I feel for now this is a good start.