General Category > General Discussion about just::thread

mutex - owning thread?

(1/1)

Rich Hornay:
Is there a way to find the owning thread of a std::mutex?  It would be desirable to see this both live and especially in crash dumps.

Anthony Williams:
No, there isn't. The normal build of the library does not track this information. The checked build does, but this is not available outside the deadlock-detection code. For one thing, it could change between the call being made and the information being used.

Navigation

[0] Message Index

Go to full version