-
Notifications
You must be signed in to change notification settings - Fork 62
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
Semaphore::create_binary
can't be used
#16
Comments
Good point. PR is welcome. Since I'm not maintaining any active code using this repo there is not much activity from my side, but any help is welcome. |
One solution would be to directly implement Even looking at the If you really wanted completeness, some properly named version of |
This issue seems to have been fixed in #46 in exactly this way:
|
Agree, will close. If anyone feels there's more to do we can re-open. |
Quoting the docs:
The Semaphore API only allows locking, and then dropping the guard, which means there is no way to "give" a binary semaphore. This API also makes using Semaphores as synchronization tools unwieldy.
The text was updated successfully, but these errors were encountered: