8000 Add AutoReleasingSemaphore by neakor · Pull Request #30 · uber/swift-concurrency · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add AutoReleasingSemaphore #30

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

Merged
merged 1 commit into from
Feb 20, 2019
Merged

Add AutoReleasingSemaphore #30

merged 1 commit into from
Feb 20, 2019

Conversation

neakor
Copy link
Contributor
@neakor neakor commented Feb 20, 2019

Similar to DispatchSemaphore, AutoReleasingSemaphore is a synchronization mechanism that ensures only a set number of threads can concurrently access a protected resource. Unlike DispatchSemaphore, AutoReleasingSemaphore auto-releases all blocked threads when the semaphore itself is deallocated.

Similar to `DispatchSemaphore`, `AutoReleasingSemaphore` is a synchronization mechanism that ensures only a set number of threads can concurrently access a protected resource. Unlike `DispatchSemaphore`, `AutoReleasingSemaphore` auto-releases all blocked threads when the semaphore itself is deallocated.
@rudro rudro merged commit c773c32 into master Feb 20, 2019
@rudro rudro deleted the auto_releasing_semaphore branch February 20, 2019 18:38
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
0