mutex at the same time when using it right?
So basically you can have a function lock the mutex and then from there call a function that locks it too
A normal mutex would be deadlocked now
Ooh, so the calling second function has to be in scope of the parent function that it's being executed in? EG: void x(){ c()}... if c locks same mutex that x locks, they can share?
No it does not even have to be in scope.
Okay, so long as the function locking it again, was called by a function that already had the lock, then they share?
Обсуждают сегодня