index.html
Main Page
|
modules.html
Modules
|
namespaces.html
Namespace List
|
hierarchy.html
Class Hierarchy
|
annotated.html
Data Structures
|
dirs.html
Directories
|
files.html
File List
|
namespacemembers.html
Namespace Members
|
functions.html
Data Fields
|
pages.html
Related Pages
Thread functions
[
group__DBus.html
D-BUS low-level public API
]
group__DBusThreads.html#ga0
dbus_threads_init()
#_details
More...
Functions
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusThreads.html#ga0
dbus_threads_init
(const
structDBusThreadFunctions.html
DBusThreadFunctions
*functions)
Initializes threads.
#ga0
Detailed Description
group__DBusThreads.html#ga0
dbus_threads_init()
Functions and macros related to threads and thread locks.
Function Documentation
group__DBusTypes.html#ga2
dbus_bool_t
dbus_threads_init
(
const
structDBusThreadFunctions.html
DBusThreadFunctions
*
functions
)
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.
Parameters:
functions
functions for using threads
Returns:
group__DBusMacros.html#ga2
TRUE
on success,
group__DBusMacros.html#ga3
FALSE
if no memory
Definition at line
dbus-threads_8c-source.html#l00306
306
of file
dbus-threads_8c-source.html
dbus-threads.c
.
References
dbus-internals_8h-source.html#l00100
_dbus_assert
,
dbus-memory_8c-source.html#l00682
_dbus_current_generation
,
dbus-internals_8c-source.html#l00203
_dbus_warn()
,
dbus-threads_8h-source.html#l00083
DBusThreadFunctions::condvar_free
,
dbus-threads_8h-source.html#l00082
DBusThreadFunctions::condvar_new
,
dbus-threads_8h-source.html#l00084
DBusThreadFunctions::condvar_wait
,
dbus-threads_8h-source.html#l00085
DBusThreadFunctions::condvar_wait_timeout
,
dbus-threads_8h-source.html#l00087
DBusThreadFunctions::condvar_wake_all
,
dbus-threads_8h-source.html#l00086
DBusThreadFunctions::condvar_wake_one
,
group__DBusMacros.html#ga3
FALSE
,
dbus-threads_8h-source.html#l00075
DBusThreadFunctions::mask
,
dbus-threads_8h-source.html#l00078
DBusThreadFunctions::mutex_free
,
dbus-threads_8h-source.html#l00079
DBusThreadFunctions::mutex_lock
,
dbus-threads_8h-source.html#l00077
DBusThreadFunctions::mutex_new
,
dbus-threads_8h-source.html#l00080
DBusThreadFunctions::mutex_unlock
,
group__DBusMacros.html#ga4
NULL
, and
group__DBusMacros.html#ga2
TRUE
.
Referenced by
dbus-gthread_8c-source.html#l00171
dbus_g_thread_init()
.
Generated on Tue Sep 13 01:28:09 2005 for D-BUS by
http://www.doxygen.org/index.html
doxygen
1.4.4
