Does pthreads support a method for querying the "lock count" of a recursive mutex?

Does pthreads support any method that allows you to query the number of times a recursive mutex has been locked?

Answers


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.


Need Your Help

How to load a part of an webpage in android webview?

android webview

I would like to make an app, that shows a part of the site.