Functions | |
dbus_bool_t | dbus_threads_init (const DBusThreadFunctions *functions) |
Initializes threads. |
Functions and macros related to threads and thread locks.
|
Initializes threads. If this function is not called, the D-BUS library will not lock any data structures. If it is called, D-BUS will do locking, at some cost in efficiency. Note that this function must be called BEFORE using any other D-BUS functions. This function may be called more than once, as long as you pass in the same functions each time. If it's called multiple times with different functions, then a warning is printed, because someone is confused.
Definition at line 306 of file dbus-threads.c. References _dbus_assert, _dbus_current_generation, _dbus_warn(), DBusThreadFunctions::condvar_free, DBusThreadFunctions::condvar_new, DBusThreadFunctions::condvar_wait, DBusThreadFunctions::condvar_wait_timeout, DBusThreadFunctions::condvar_wake_all, DBusThreadFunctions::condvar_wake_one, FALSE, DBusThreadFunctions::mask, DBusThreadFunctions::mutex_free, DBusThreadFunctions::mutex_lock, DBusThreadFunctions::mutex_new, DBusThreadFunctions::mutex_unlock, NULL, and TRUE. Referenced by dbus_g_thread_init(). |