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

Semaphore support #4

Open
praetp opened this issue Apr 3, 2015 · 1 comment
Open

Semaphore support #4

praetp opened this issue Apr 3, 2015 · 1 comment

Comments

@praetp
Copy link

praetp commented Apr 3, 2015

Hi, I was trying out your library but as mentioned it does not support semaphores.
Do you think this would be hard to do ? Otherwise I might consider adding it.. Did not have a look at the source code though.

@cmccabe
Copy link
Owner

cmccabe commented Apr 4, 2015

Hi spetsnaz84,

I think it would be relatively easy to treat semaphores similar to how I treat mutexes currently. The main difference is that semaphores can be released from threads other than the thread that acquired them, without causing undefined behavior. Otherwise, they are just the same as recursive mutexes.

best,
Colin

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