EGOCache icon indicating copy to clipboard operation
EGOCache copied to clipboard

Unproper usage of dispatch_queue_t ?

Open voidguy opened this issue 9 years ago • 1 comments

In initWithCacheDirectory:cacheDirectory method use dispatch_set_target_queue(priority, _cacheInfoQueue) code to set priority for _cacheInfoQueue, but according to Apple Developer, this should be dispatch_set_target_queue( _cacheInfoQueue, priority), I think here have a mistake.

voidguy avatar Jun 16 '15 07:06 voidguy

I think you are right.

As it is coded the queue looked for in the previous line

dispatch_queue_t priority = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0);

gets redirected (targeted) to our newly created queue and i suppose that the opposite is desired

buttcmd avatar Jun 22 '15 16:06 buttcmd