24 #ifndef _CORE_THREADING_MUTEX_DATA_H_
25 #define _CORE_THREADING_MUTEX_DATA_H_
29 #ifdef DEBUG_THREADING
30 # include <core/exception.h>
31 # include <core/threading/thread.h>
46 pthread_mutex_t mutex;
48 #ifdef DEBUG_THREADING
51 lock_holder = strdup(
"Not locked");
72 lock_holder = strdup(ct->name());
74 lock_holder = strdup(
"Unknown");
76 }
catch (Exception &e) {
77 asprintf(&lock_holder,
"Unknown: failed to get thread (%s)", e.what());
87 lock_holder = strdup(
"Not locked");
static Thread * current_thread()
Get the Thread instance of the currently running thread.
Fawkes library namespace.