cogciprocate / qutex

Synchronization mechanisms based on lock-free queues and Rust futures
MIT License
36 stars 8 forks source link

`Guard::unlock` leaves `Qutex` locked #2

Closed JohnColanduoni closed 5 years ago

JohnColanduoni commented 5 years ago

The implementation of Guard::unlock actually leaves the lock still locked by canceling the Drop implementation for Guard. I believe a call to qutex.direct_unlock() is needed after the mem::forget for the function to work as intended.

c0gent commented 5 years ago

You appear to be the first person to actually use Guard::unlock. Thanks!

JohnColanduoni commented 5 years ago

Awesome, thanks!