You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Condvar::wait() has to unlock the mutex. For a reentrant mutex it would have to unlock all mutex guards for the mutex to prevent a deadlock. This would be unsound however as ReentrantMutexGuard is Sync and thus another thread may be accessing a ReentrantMutexGuard while it is unlocked if Condvar::wait() were to unlock all mutex guards rather than just the one that is passed in.
Condvar
is not usable withReentrantMutex
because ofCondvar::wait()
takes aMutexGuard
.Any reason to not have a variant of the API handling
ReentrantMutex
?The text was updated successfully, but these errors were encountered: