Top "Recursive-mutex" questions

A recursive mutex (reentrant mutex) is a mutex which may be locked multiple times by the same process or thread, without causing a deadlock.

Recursive Lock (Mutex) vs Non-Recursive Lock (Mutex)

POSIX allows mutexes to be recursive. That means the same thread can lock the same mutex twice and won't deadlock. …

multithreading locking mutex deadlock recursive-mutex
C: How do you declare a recursive mutex with POSIX threads?

I am a bit confused on how to declare a recursive mutex using pthread. What I try to do is …

c multithreading pthreads mutex recursive-mutex
When to use recursive mutex?

I understand recursive mutex allows mutex to be locked more than once without getting to a deadlock and should be …

c++ multithreading recursion mutex recursive-mutex
std::mutex vs std::recursive_mutex as class member

I have seen some people hate on recursive_mutex: http://www.zaval.org/resources/library/butenhof1.html But when thinking …

c++ c++11 mutex object-design recursive-mutex
Can you combine std::recursive_mutex with std::condition_variable?

Can you combine std::recursive_mutex with std::condition_variable, meaning do something like this: std::unique_lock<std::…

c++ multithreading c++11 std recursive-mutex
Why boost::recursive_mutex is not working as expected?

I have a custom class that uses boost mutexes and locks like this (only relevant parts): template<class T&…

c++ boost locking mutex recursive-mutex