• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/dbus-1.6.8/dbus/

Lines Matching refs:mutex

35 /** This is used for the no-op default mutex pointer, just to be distinct from #NULL */
40 /** This is used for the no-op default mutex pointer, just to be distinct from #NULL */
54 * Creates a new mutex
55 * or creates a no-op mutex if threads are not initialized.
59 * If possible, the mutex returned by this function is recursive, to
63 * to point to the mutex location allows the threading
64 * module to swap out dummy mutexes for a real mutex so libraries
67 * @param location_p the location of the new mutex, can return #NULL on OOM
88 * Creates a new mutex
89 * or creates a no-op mutex if threads are not initialized.
93 * The returned mutex is suitable for use with condition variables.
96 * to point to the mutex location allows the threading
97 * module to swap out dummy mutexes for a real mutex so libraries
100 * @param location_p the location of the new mutex, can return #NULL on OOM
121 * Frees a DBusRMutex or removes it from the uninitialized mutex list;
145 * uninitialized mutex list;
168 * Locks a mutex. Does nothing if passed a #NULL pointer.
173 _dbus_rmutex_lock (DBusRMutex *mutex)
175 if (mutex && thread_init_generation == _dbus_current_generation)
176 _dbus_platform_rmutex_lock (mutex);
180 * Locks a mutex. Does nothing if passed a #NULL pointer.
185 _dbus_cmutex_lock (DBusCMutex *mutex)
187 if (mutex && thread_init_generation == _dbus_current_generation)
188 _dbus_platform_cmutex_lock (mutex);
192 * Unlocks a mutex. Does nothing if passed a #NULL pointer.
197 _dbus_rmutex_unlock (DBusRMutex *mutex)
199 if (mutex && thread_init_generation == _dbus_current_generation)
200 _dbus_platform_rmutex_unlock (mutex);
204 * Unlocks a mutex. Does nothing if passed a #NULL pointer.
209 _dbus_cmutex_unlock (DBusCMutex *mutex)
211 if (mutex && thread_init_generation == _dbus_current_generation)
212 _dbus_platform_cmutex_unlock (mutex);
221 * @returns new mutex or #NULL
298 * Atomically unlocks the mutex and waits for the conditions
299 * variable to be signalled. Locks the mutex again before
305 DBusCMutex *mutex)
307 if (cond && mutex && thread_init_generation == _dbus_current_generation)
308 _dbus_platform_condvar_wait (cond, mutex);
312 * Atomically unlocks the mutex and waits for the conditions variable
313 * to be signalled, or for a timeout. Locks the mutex again before
318 * @param mutex the mutex
324 DBusCMutex *mutex,
327 if (cond && mutex && thread_init_generation == _dbus_current_generation)
328 return _dbus_platform_condvar_wait_timeout (cond, mutex,