Closed JohnColanduoni closed 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.
Guard::unlock
Drop
Guard
qutex.direct_unlock()
mem::forget
You appear to be the first person to actually use Guard::unlock. Thanks!
Awesome, thanks!
The implementation of
Guard::unlock
actually leaves the lock still locked by canceling theDrop
implementation forGuard
. I believe a call toqutex.direct_unlock()
is needed after themem::forget
for the function to work as intended.