MutexGuard's Debug implementation is unuseful #57702
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
MutexGuard
'sDebug
implementation just forwards to theMutex
'sDebug
implementation, which will simply print<locked>
, because theMutex
was locked (by that very sameMutexGuard
).Effectively, this means that the current
Debug
implementation ofMutexGuard
is equivalent to:Instead, it should not try to lock the mutex, but use its own
Deref
implementation to print the contents of the mutex.The text was updated successfully, but these errors were encountered: