#include <stdapis/dbus-1.0/dbus/dbus-threads.h>
typedef struct DBusMutex | DBusMutex |
An opaque mutex type provided by the DBusThreadFunctions implementation installed by dbus_threads_init().
typedef struct DBusCondVar | DBusCondVar |
An opaque condition variable type provided by the DBusThreadFunctions implementation installed by dbus_threads_init().
typedef DBusMutex *(* | DBusMutexNewFunction |
Deprecated, provide DBusRecursiveMutexNewFunction instead.
typedef void(* | DBusMutexFreeFunction |
Deprecated, provide DBusRecursiveMutexFreeFunction instead.
typedef dbus_bool_t(* | DBusMutexLockFunction |
Deprecated, provide DBusRecursiveMutexLockFunction instead. Return value is lock success, but gets ignored in practice.
typedef dbus_bool_t(* | DBusMutexUnlockFunction |
Deprecated, provide DBusRecursiveMutexUnlockFunction instead. Return value is unlock success, but gets ignored in practice.
typedef DBusMutex *(* | DBusRecursiveMutexNewFunction |
Creates a new recursively-lockable mutex, or returns NULL if not enough memory. Can only fail due to lack of memory. Found in DBusThreadFunctions. Do not just use PTHREAD_MUTEX_RECURSIVE for this, because it does not save/restore the recursion count when waiting on a condition. libdbus requires the Java-style behavior where the mutex is fully unlocked to wait on a condition.
typedef void(* | DBusRecursiveMutexFreeFunction |
Frees a recursively-lockable mutex. Found in DBusThreadFunctions.
typedef void(* | DBusRecursiveMutexLockFunction |
Locks a recursively-lockable mutex. Found in DBusThreadFunctions. Can only fail due to lack of memory.
typedef void(* | DBusRecursiveMutexUnlockFunction |
Unlocks a recursively-lockable mutex. Found in DBusThreadFunctions. Can only fail due to lack of memory.
typedef DBusCondVar *(* | DBusCondVarNewFunction |
Creates a new condition variable. Found in DBusThreadFunctions. Can only fail (returning NULL) due to lack of memory.
typedef void(* | DBusCondVarFreeFunction |
Frees a condition variable. Found in DBusThreadFunctions.
typedef void(* | DBusCondVarWaitFunction |
Waits on a condition variable. Found in DBusThreadFunctions. Must work with either a recursive or nonrecursive mutex, whichever the thread implementation provides. Note that PTHREAD_MUTEX_RECURSIVE does not work with condition variables (does not save/restore the recursion count) so don't try using simply pthread_cond_wait() and a PTHREAD_MUTEX_RECURSIVE to implement this, it won't work right.
Has no error conditions. Must succeed if it returns.
typedef dbus_bool_t(* | DBusCondVarWaitTimeoutFunction |
Waits on a condition variable with a timeout. Found in DBusThreadFunctions. Returns TRUE if the wait did not time out, and FALSE if it did.
Has no error conditions. Must succeed if it returns.
typedef void(* | DBusCondVarWakeOneFunction |
Wakes one waiting thread on a condition variable. Found in DBusThreadFunctions.
Has no error conditions. Must succeed if it returns.
typedef void(* | DBusCondVarWakeAllFunction |
Wakes all waiting threads on a condition variable. Found in DBusThreadFunctions.
Has no error conditions. Must succeed if it returns.