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__DBusInternals.html
D-BUS internal implementation details
]
group__DBusThreadsInternals.html#ga2
_dbus_mutex_lock()
, etc.
#_details
More...
Functions
DBusMutex *
group__DBusThreadsInternals.html#ga0
_dbus_mutex_new
(void)
Creates a new mutex using the function supplied to
group__DBusThreads.html#ga0
dbus_threads_init()
, or creates a no-op mutex if threads are not initialized.
#ga0
void
group__DBusThreadsInternals.html#ga1
_dbus_mutex_free
(DBusMutex *mutex)
Frees a mutex created with dbus_mutex_new(); does nothing if passed a
group__DBusMacros.html#ga4
NULL
pointer.
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusThreadsInternals.html#ga2
_dbus_mutex_lock
(DBusMutex *mutex)
Locks a mutex.
#ga2
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusThreadsInternals.html#ga3
_dbus_mutex_unlock
(DBusMutex *mutex)
Unlocks a mutex.
#ga3
DBusCondVar *
group__DBusThreadsInternals.html#ga4
_dbus_condvar_new
(void)
Creates a new condition variable using the function supplied to
group__DBusThreads.html#ga0
dbus_threads_init()
, or creates a no-op condition variable if threads are not initialized.
#ga4
void
group__DBusThreadsInternals.html#ga5
_dbus_condvar_free
(DBusCondVar *cond)
Frees a conditional variable created with dbus_condvar_new(); does nothing if passed a
group__DBusMacros.html#ga4
NULL
pointer.
void
group__DBusThreadsInternals.html#ga6
_dbus_condvar_wait
(DBusCondVar *cond, DBusMutex *mutex)
Atomically unlocks the mutex and waits for the conditions variable to be signalled.
#ga6
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusThreadsInternals.html#ga7
_dbus_condvar_wait_timeout
(DBusCondVar *cond, DBusMutex *mutex, int timeout_milliseconds)
Atomically unlocks the mutex and waits for the conditions variable to be signalled, or for a timeout.
#ga7
void
group__DBusThreadsInternals.html#ga8
_dbus_condvar_wake_one
(DBusCondVar *cond)
If there are threads waiting on the condition variable, wake up exactly one.
#ga8
void
group__DBusThreadsInternals.html#ga9
_dbus_condvar_wake_all
(DBusCondVar *cond)
If there are threads waiting on the condition variable, wake up all of them.
#ga9
Detailed Description
group__DBusThreadsInternals.html#ga2
_dbus_mutex_lock()
, etc.
Functions and macros related to threads and thread locks.
Function Documentation
DBusCondVar* _dbus_condvar_new
(
void
)
Creates a new condition variable using the function supplied to
group__DBusThreads.html#ga0
dbus_threads_init()
, or creates a no-op condition variable if threads are not initialized.
May return
group__DBusMacros.html#ga4
NULL
even if threads are initialized, indicating out-of-memory.
Returns:
new mutex or
group__DBusMacros.html#ga4
NULL
Definition at line
dbus-threads_8c-source.html#l00120
120
of file
dbus-threads_8c-source.html
dbus-threads.c
.
References
dbus-threads_8h-source.html#l00082
DBusThreadFunctions::condvar_new
.
Referenced by
dbus-connection_8c-source.html#l01070
_dbus_connection_new_for_transport()
.
void _dbus_condvar_wait
(
DBusCondVar *
cond
,
DBusMutex *
mutex
)
Atomically unlocks the mutex and waits for the conditions variable to be signalled.
Locks the mutex again before returning. Does nothing if passed a
group__DBusMacros.html#ga4
NULL
pointer.
Definition at line
dbus-threads_8c-source.html#l00146
146
of file
dbus-threads_8c-source.html
dbus-threads.c
.
References
dbus-threads_8h-source.html#l00084
DBusThreadFunctions::condvar_wait
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_condvar_wait_timeout
(
DBusCondVar *
cond
,
DBusMutex *
mutex
,
int
timeout_milliseconds
)
Atomically unlocks the mutex and waits for the conditions variable to be signalled, or for a timeout.
Locks the mutex again before returning. Does nothing if passed a
group__DBusMacros.html#ga4
NULL
pointer.
Parameters:
cond
the condition variable
mutex
the mutex
timeout_milliseconds
the maximum time to wait
Returns:
TRUE if the condition was reached, or FALSE if the timeout was reached.
Definition at line
dbus-threads_8c-source.html#l00166
166
of file
dbus-threads_8c-source.html
dbus-threads.c
.
References
dbus-threads_8h-source.html#l00084
DBusThreadFunctions::condvar_wait
,
dbus-threads_8h-source.html#l00085
DBusThreadFunctions::condvar_wait_timeout
, and
group__DBusMacros.html#ga2
TRUE
.
void _dbus_condvar_wake_all
(
DBusCondVar *
cond
)
If there are threads waiting on the condition variable, wake up all of them.
Does nothing if passed a
group__DBusMacros.html#ga4
NULL
pointer.
Definition at line
dbus-threads_8c-source.html#l00194
194
of file
dbus-threads_8c-source.html
dbus-threads.c
.
References
dbus-threads_8h-source.html#l00087
DBusThreadFunctions::condvar_wake_all
.
void _dbus_condvar_wake_one
(
DBusCondVar *
cond
)
If there are threads waiting on the condition variable, wake up exactly one.
Does nothing if passed a
group__DBusMacros.html#ga4
NULL
pointer.
Definition at line
dbus-threads_8c-source.html#l00182
182
of file
dbus-threads_8c-source.html
dbus-threads.c
.
References
dbus-threads_8h-source.html#l00086
DBusThreadFunctions::condvar_wake_one
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_mutex_lock
(
DBusMutex *
mutex
)
Locks a mutex.
Does nothing if passed a
group__DBusMacros.html#ga4
NULL
pointer. Locks are not recursive.
Returns:
group__DBusMacros.html#ga2
TRUE
on success
Definition at line
dbus-threads_8c-source.html#l00089
89
of file
dbus-threads_8c-source.html
dbus-threads.c
.
References
dbus-threads_8h-source.html#l00079
DBusThreadFunctions::mutex_lock
, and
group__DBusMacros.html#ga2
TRUE
.
Referenced by
dbus-dataslot_8c-source.html#l00067
_dbus_data_slot_allocator_alloc()
,
dbus-dataslot_8c-source.html#l00161
_dbus_data_slot_allocator_free()
,
dbus-dataslot_8c-source.html#l00295
_dbus_data_slot_list_get()
, and
dbus-dataslot_8c-source.html#l00233
_dbus_data_slot_list_set()
.
DBusMutex* _dbus_mutex_new
(
void
)
Creates a new mutex using the function supplied to
group__DBusThreads.html#ga0
dbus_threads_init()
, or creates a no-op mutex if threads are not initialized.
May return
group__DBusMacros.html#ga4
NULL
even if threads are initialized, indicating out-of-memory.
Returns:
new mutex or
group__DBusMacros.html#ga4
NULL
Definition at line
dbus-threads_8c-source.html#l00063
63
of file
dbus-threads_8c-source.html
dbus-threads.c
.
References
dbus-threads_8h-source.html#l00077
DBusThreadFunctions::mutex_new
.
Referenced by
dbus-connection_8c-source.html#l01070
_dbus_connection_new_for_transport()
, and
dbus-server_8c-source.html#l00114
_dbus_server_init_base()
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_mutex_unlock
(
DBusMutex *
mutex
)
Unlocks a mutex.
Does nothing if passed a
group__DBusMacros.html#ga4
NULL
pointer.
Returns:
group__DBusMacros.html#ga2
TRUE
on success
Definition at line
dbus-threads_8c-source.html#l00103
103
of file
dbus-threads_8c-source.html
dbus-threads.c
.
References
dbus-threads_8h-source.html#l00080
DBusThreadFunctions::mutex_unlock
, and
group__DBusMacros.html#ga2
TRUE
.
Referenced by
dbus-dataslot_8c-source.html#l00067
_dbus_data_slot_allocator_alloc()
,
dbus-dataslot_8c-source.html#l00161
_dbus_data_slot_allocator_free()
,
dbus-dataslot_8c-source.html#l00295
_dbus_data_slot_list_get()
, and
dbus-dataslot_8c-source.html#l00233
_dbus_data_slot_list_set()
.
Generated on Tue Sep 13 01:28:09 2005 for D-BUS by
http://www.doxygen.org/index.html
doxygen
1.4.4
