10 Mutex(char *title
= 0, int recursive
= 0);
13 int lock(char *location
= 0);
15 // Calls pthread_mutex_trylock, whose effect depends on library version.
18 // Returns 1 if count is > 0
21 // Number of times the thread currently holding the mutex has locked it.
22 // For recursive locking.
24 // ID of the thread currently holding the mutex. For recursive locking.
28 // Lock the variables for recursive locking.
29 pthread_mutex_t recursive_lock
;
30 pthread_mutex_t mutex
;
39 // c-file-style: "linux"