Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unproper usage of dispatch_queue_t ? #50

Open
voidguy opened this issue Jun 16, 2015 · 1 comment
Open

Unproper usage of dispatch_queue_t ? #50

voidguy opened this issue Jun 16, 2015 · 1 comment

Comments

@voidguy
Copy link

voidguy commented Jun 16, 2015

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.

@buttcmd
Copy link

buttcmd commented Jun 22, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants