23#ifndef DBUS_THREADS_INTERNAL_H
24#define DBUS_THREADS_INTERNAL_H
26#include <dbus/dbus-macros.h>
27#include <dbus/dbus-types.h>
28#include <dbus/dbus-threads.h>
69 int timeout_milliseconds);
77void _dbus_platform_rmutex_free (
DBusRMutex *mutex);
78void _dbus_platform_rmutex_lock (
DBusRMutex *mutex);
79void _dbus_platform_rmutex_unlock (
DBusRMutex *mutex);
82void _dbus_platform_cmutex_free (
DBusCMutex *mutex);
83void _dbus_platform_cmutex_lock (
DBusCMutex *mutex);
84void _dbus_platform_cmutex_unlock (
DBusCMutex *mutex);
87void _dbus_platform_condvar_free (
DBusCondVar *cond);
92 int timeout_milliseconds);
93void _dbus_platform_condvar_wake_one (
DBusCondVar *cond);
#define DBUS_BEGIN_DECLS
Macro used prior to declaring functions in the D-Bus header files.
#define DBUS_END_DECLS
Macro used after declaring functions in the D-Bus header files.
void _dbus_rmutex_new_at_location(DBusRMutex **location_p)
Creates a new mutex or creates a no-op mutex if threads are not initialized.
void _dbus_cmutex_free_at_location(DBusCMutex **location_p)
Frees a DBusCMutex; does nothing if passed a NULL pointer.
DBusCondVar * _dbus_condvar_new(void)
Creates a new condition variable using the function supplied to dbus_threads_init(),...
void _dbus_condvar_free_at_location(DBusCondVar **location_p)
Frees a condition variable; does nothing if passed a NULL pointer.
DBUS_PRIVATE_EXPORT void _dbus_rmutex_unlock(DBusRMutex *mutex)
Unlocks a mutex.
void _dbus_condvar_wait(DBusCondVar *cond, DBusCMutex *mutex)
Atomically unlocks the mutex and waits for the conditions variable to be signalled.
void _dbus_condvar_new_at_location(DBusCondVar **location_p)
This does the same thing as _dbus_condvar_new.
void _dbus_cmutex_new_at_location(DBusCMutex **location_p)
Creates a new mutex or creates a no-op mutex if threads are not initialized.
void _dbus_condvar_wake_one(DBusCondVar *cond)
If there are threads waiting on the condition variable, wake up exactly one.
dbus_bool_t _dbus_condvar_wait_timeout(DBusCondVar *cond, DBusCMutex *mutex, int timeout_milliseconds)
Atomically unlocks the mutex and waits for the conditions variable to be signalled,...
void _dbus_cmutex_lock(DBusCMutex *mutex)
Locks a mutex.
void _dbus_cmutex_unlock(DBusCMutex *mutex)
Unlocks a mutex.
void _dbus_rmutex_free_at_location(DBusRMutex **location_p)
Frees a DBusRMutex; does nothing if passed a NULL pointer.
DBUS_PRIVATE_EXPORT void _dbus_rmutex_lock(DBusRMutex *mutex)
Locks a mutex.
void _dbus_condvar_free(DBusCondVar *cond)
Frees a conditional variable created with dbus_condvar_new(); does nothing if passed a NULL pointer.
dbus_uint32_t dbus_bool_t
A boolean, valid values are TRUE and FALSE.