guerrilla icon indicating copy to clipboard operation
guerrilla copied to clipboard

test case for out-of-order drop

Open kazcw opened this issue 7 years ago • 2 comments

Demonstrates issue #6

kazcw avatar Nov 10 '18 18:11 kazcw

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

mehcode avatar Nov 13 '18 23:11 mehcode

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.

kazcw avatar Nov 15 '18 19:11 kazcw