D-Bus 1.14.10
|
Functions that must be implemented to make the D-Bus library thread-aware. More...
#include <dbus-threads.h>
Data Fields | |
unsigned int | mask |
Mask indicating which functions are present. More... | |
DBusMutexNewFunction | mutex_new |
Function to create a mutex; optional and deprecated. More... | |
DBusMutexFreeFunction | mutex_free |
Function to free a mutex; optional and deprecated. More... | |
DBusMutexLockFunction | mutex_lock |
Function to lock a mutex; optional and deprecated. More... | |
DBusMutexUnlockFunction | mutex_unlock |
Function to unlock a mutex; optional and deprecated. More... | |
DBusCondVarNewFunction | condvar_new |
Function to create a condition variable. More... | |
DBusCondVarFreeFunction | condvar_free |
Function to free a condition variable. More... | |
DBusCondVarWaitFunction | condvar_wait |
Function to wait on a condition. More... | |
DBusCondVarWaitTimeoutFunction | condvar_wait_timeout |
Function to wait on a condition with a timeout. More... | |
DBusCondVarWakeOneFunction | condvar_wake_one |
Function to wake one thread waiting on the condition. More... | |
DBusCondVarWakeAllFunction | condvar_wake_all |
Function to wake all threads waiting on the condition. More... | |
DBusRecursiveMutexNewFunction | recursive_mutex_new |
Function to create a recursive mutex. More... | |
DBusRecursiveMutexFreeFunction | recursive_mutex_free |
Function to free a recursive mutex. More... | |
DBusRecursiveMutexLockFunction | recursive_mutex_lock |
Function to lock a recursive mutex. More... | |
DBusRecursiveMutexUnlockFunction | recursive_mutex_unlock |
Function to unlock a recursive mutex. More... | |
void(* | padding1 )(void) |
Reserved for future expansion. More... | |
void(* | padding2 )(void) |
Reserved for future expansion. More... | |
void(* | padding3 )(void) |
Reserved for future expansion. More... | |
void(* | padding4 )(void) |
Reserved for future expansion. More... | |
Functions that must be implemented to make the D-Bus library thread-aware.
If you supply both recursive and non-recursive mutexes, libdbus will use the non-recursive version for condition variables, and the recursive version in other contexts.
The condition variable functions have to work with nonrecursive mutexes if you provide those, or with recursive mutexes if you don't.
Definition at line 152 of file dbus-threads.h.
DBusCondVarFreeFunction DBusThreadFunctions::condvar_free |
Function to free a condition variable.
Definition at line 162 of file dbus-threads.h.
DBusCondVarNewFunction DBusThreadFunctions::condvar_new |
Function to create a condition variable.
Definition at line 161 of file dbus-threads.h.
DBusCondVarWaitFunction DBusThreadFunctions::condvar_wait |
Function to wait on a condition.
Definition at line 163 of file dbus-threads.h.
DBusCondVarWaitTimeoutFunction DBusThreadFunctions::condvar_wait_timeout |
Function to wait on a condition with a timeout.
Definition at line 164 of file dbus-threads.h.
DBusCondVarWakeAllFunction DBusThreadFunctions::condvar_wake_all |
Function to wake all threads waiting on the condition.
Definition at line 166 of file dbus-threads.h.
DBusCondVarWakeOneFunction DBusThreadFunctions::condvar_wake_one |
Function to wake one thread waiting on the condition.
Definition at line 165 of file dbus-threads.h.
unsigned int DBusThreadFunctions::mask |
Mask indicating which functions are present.
Definition at line 154 of file dbus-threads.h.
DBusMutexFreeFunction DBusThreadFunctions::mutex_free |
Function to free a mutex; optional and deprecated.
Definition at line 157 of file dbus-threads.h.
DBusMutexLockFunction DBusThreadFunctions::mutex_lock |
Function to lock a mutex; optional and deprecated.
Definition at line 158 of file dbus-threads.h.
DBusMutexNewFunction DBusThreadFunctions::mutex_new |
Function to create a mutex; optional and deprecated.
Definition at line 156 of file dbus-threads.h.
DBusMutexUnlockFunction DBusThreadFunctions::mutex_unlock |
Function to unlock a mutex; optional and deprecated.
Definition at line 159 of file dbus-threads.h.
void(* DBusThreadFunctions::padding1) (void) |
Reserved for future expansion.
Definition at line 173 of file dbus-threads.h.
void(* DBusThreadFunctions::padding2) (void) |
Reserved for future expansion.
Definition at line 174 of file dbus-threads.h.
void(* DBusThreadFunctions::padding3) (void) |
Reserved for future expansion.
Definition at line 175 of file dbus-threads.h.
void(* DBusThreadFunctions::padding4) (void) |
Reserved for future expansion.
Definition at line 176 of file dbus-threads.h.
DBusRecursiveMutexFreeFunction DBusThreadFunctions::recursive_mutex_free |
Function to free a recursive mutex.
Definition at line 169 of file dbus-threads.h.
DBusRecursiveMutexLockFunction DBusThreadFunctions::recursive_mutex_lock |
Function to lock a recursive mutex.
Definition at line 170 of file dbus-threads.h.
DBusRecursiveMutexNewFunction DBusThreadFunctions::recursive_mutex_new |
Function to create a recursive mutex.
Definition at line 168 of file dbus-threads.h.
DBusRecursiveMutexUnlockFunction DBusThreadFunctions::recursive_mutex_unlock |
Function to unlock a recursive mutex.
Definition at line 171 of file dbus-threads.h.