jeudi 26 janvier 2017

Is there any debug/diagnostic mutex class to help diagnose of multithreading programs?

I know there are different variants of mutexes C++ classes (standard C++11, Boost, others),
I wonder if is there some kind of debug/diagnostic mutex that could help diagnose aspects of multithreading programming, i.e.:
- understand if a mutex is really needed (or a null_mutex or nothing at all can be used)
- understand if a mutex is called recursively (so std::recursive_mutex should be used instead of std::mutex)
- ... other useful stuff?

Could such a mutex be a good or bad idea, anyway?

Aucun commentaire:

Enregistrer un commentaire