Skip to content

Conversation

kazcw
Copy link

@kazcw kazcw commented Nov 10, 2018

Demonstrates issue #6

@mehcode
Copy link
Owner

mehcode commented Nov 13, 2018

Thanks for writing up a test for this. Perhaps a keyed ReentrantMutex from parking_lot could be an answer?

@kazcw
Copy link
Author

kazcw commented Nov 15, 2018

This bug isn't related to threading, so it can't be fixed with a mutex. It's inherent to the current API, which doesn't enforce the requirement that guards that may be for the same address are dropped in the reverse of the order in which they are created. I have a proposed approach to fixing it in #6.

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