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

re-entry supported? EOM #2

Closed
pwmckenna opened this issue Oct 22, 2014 · 1 comment
Closed

re-entry supported? EOM #2

pwmckenna opened this issue Oct 22, 2014 · 1 comment

Comments

@pwmckenna
Copy link

No description provided.

@71104
Copy link
Owner

71104 commented Oct 22, 2014

I assume reentry here means the ability to acquire a lock more than once in the same thread without blocking.

No, this module doesn't currently support reentrancy and will never be able to, because JavaScript is single-threaded and rwlock cannot possibly tell between a different thread trying to acquire the lock and the same thread trying to acquire an already acquired one. All the code comes from the same thread.

@71104 71104 closed this as completed Oct 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants