When to use recursive mutex?
For example when you have function that calls it recursively, and you want to get synchronized access to it: void foo() { … mutex_acquire(); … foo(); … mutex_release(); } without a recursive mutex you would have to create an “entry point” function first, and this becomes cumbersome when you have a set of functions that … Read more