D-Bus  1.12.2
Data Fields
DBusThreadFunctions Struct Reference

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.
 
DBusCondVarFreeFunction condvar_free
 Function to free a condition variable.
 
DBusCondVarWaitFunction condvar_wait
 Function to wait on a condition.
 
DBusCondVarWaitTimeoutFunction condvar_wait_timeout
 Function to wait on a condition with a timeout.
 
DBusCondVarWakeOneFunction condvar_wake_one
 Function to wake one thread waiting on the condition.
 
DBusCondVarWakeAllFunction condvar_wake_all
 Function to wake all threads waiting on the condition.
 
DBusRecursiveMutexNewFunction recursive_mutex_new
 Function to create a recursive mutex.
 
DBusRecursiveMutexFreeFunction recursive_mutex_free
 Function to free a recursive mutex.
 
DBusRecursiveMutexLockFunction recursive_mutex_lock
 Function to lock a recursive mutex.
 
DBusRecursiveMutexUnlockFunction recursive_mutex_unlock
 Function to unlock a recursive mutex.
 
void(* padding1 )(void)
 Reserved for future expansion.
 
void(* padding2 )(void)
 Reserved for future expansion.
 
void(* padding3 )(void)
 Reserved for future expansion.
 
void(* padding4 )(void)
 Reserved for future expansion.
 

Detailed Description

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.

Field Documentation

◆ mask

unsigned int DBusThreadFunctions::mask

Mask indicating which functions are present.

Definition at line 154 of file dbus-threads.h.

◆ mutex_free

DBusMutexFreeFunction DBusThreadFunctions::mutex_free

Function to free a mutex; optional and deprecated.

Definition at line 157 of file dbus-threads.h.

◆ mutex_lock

DBusMutexLockFunction DBusThreadFunctions::mutex_lock

Function to lock a mutex; optional and deprecated.

Definition at line 158 of file dbus-threads.h.

◆ mutex_new

DBusMutexNewFunction DBusThreadFunctions::mutex_new

Function to create a mutex; optional and deprecated.

Definition at line 156 of file dbus-threads.h.

◆ mutex_unlock

DBusMutexUnlockFunction DBusThreadFunctions::mutex_unlock

Function to unlock a mutex; optional and deprecated.

Definition at line 159 of file dbus-threads.h.


The documentation for this struct was generated from the following file: