Skip to content

Loading…

about dispatch arguments #118

Closed
kelp404 opened this Issue · 1 comment

2 participants

@kelp404

In this file "/fmdb/src/fmdb.m".

There are some code like this.

dispatch_queue_t dqueue = dispatch_get_global_queue(0, DISPATCH_QUEUE_PRIORITY_HIGH);

But in the iOS SDK the first argument is priority, the second argument is flags.

/*!
 * @param priority
 * A priority defined in dispatch_queue_priority_t
 *
 * @param flags
 * Reserved for future use. Passing any value other than zero may result in
 * a NULL return value.
 */
dispatch_get_global_queue(dispatch_queue_priority_t priority, unsigned long flags);

I think this is right.

dispatch_queue_t dqueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0);
@ccgus ccgus added a commit that referenced this issue
@ccgus Fix for issue #118 (thanks @Kelp404!) f68c006
@ccgus
Owner

Yep- I got that argument backwards. thanks for pointing it out!

@ccgus ccgus closed this
@g-Off g-Off added a commit to Shopify/fmdb that referenced this issue
@ccgus Fix for issue #118 (thanks @Kelp404!) afeec8b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.