Does pthreads support any method that allows you to query the number of times a recursive mutex has been locked?
views:
170answers:
1
+1
A:
There is no official, portable way to do this.
You could get this behavior portably by tracking the lock count yourself—perhaps by writing wrappers for the lock and unlock functions, and creating a struct with the mutex and count as members.
LnxPrgr3
2009-11-19 04:23:02