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);
84DBUS_EMBEDDED_TESTS_EXPORT
92DBUS_EMBEDDED_TESTS_EXPORT
93void _dbus_platform_rmutex_free (
DBusRMutex *mutex);
105DBUS_EMBEDDED_TESTS_EXPORT
106void _dbus_platform_rmutex_lock (
DBusRMutex *mutex);
113DBUS_EMBEDDED_TESTS_EXPORT
114void _dbus_platform_rmutex_unlock (
DBusRMutex *mutex);
121DBUS_EMBEDDED_TESTS_EXPORT
128DBUS_EMBEDDED_TESTS_EXPORT
129void _dbus_platform_cmutex_free (
DBusCMutex *mutex);
144DBUS_EMBEDDED_TESTS_EXPORT
145void _dbus_platform_cmutex_lock (
DBusCMutex *mutex);
152DBUS_EMBEDDED_TESTS_EXPORT
153void _dbus_platform_cmutex_unlock (
DBusCMutex *mutex);
156void _dbus_platform_condvar_free (
DBusCondVar *cond);
157void _dbus_platform_condvar_wait (
DBusCondVar *cond,
161 int timeout_milliseconds);
162void _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.