just::thread Support Forum

General Category => General Discussion about just::thread => Topic started by: Rich Hornay on May 08, 2012, 12:44:45 PM

Title: mutex - owning thread?
Post by: Rich Hornay on May 08, 2012, 12:44:45 PM
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.
Title: Re: mutex - owning thread?
Post by: Anthony Williams on May 08, 2012, 12:58:15 PM
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.