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

Fix zero-length query call for DispatchQueue::Barrier #507

Merged
merged 1 commit into from
May 18, 2015

Conversation

codemercenary
Copy link
Contributor

When Barrier is called with a value of zero, the return value must be set according to the number of elements in the queue as of the time of the call. Not only is this a good optimization, but it's also a way to allow consumers to easily poll the status of the queue.

Fixes #504

When Barrier is called with a value of zero, the return value must be set according to the number of elements in the queue as of the time of the call.  Not only is this a good optimization, but it's also a way to allow consumers to easily poll the status of the queue.

Fixes #504
jnguyen75 added a commit that referenced this pull request May 18, 2015
Fix zero-length query call for DispatchQueue::Barrier
@jnguyen75 jnguyen75 merged commit f20983d into develop May 18, 2015
@jnguyen75 jnguyen75 deleted the fix-zerobarrier branch May 18, 2015 18:28
@jnguyen75
Copy link
Contributor

thanks!

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

Successfully merging this pull request may close these issues.

2 participants