Searched defs:mutex (Results 76 - 100 of 111) sorted by relevance

12345

/external/protobuf/src/google/protobuf/stubs/
H A Dcommon.cc239 // emulates google3/base/mutex.cc
244 CRITICAL_SECTION mutex; member in struct:google::protobuf::Mutex::Internal
253 InitializeCriticalSection(&mInternal->mutex);
257 DeleteCriticalSection(&mInternal->mutex);
262 EnterCriticalSection(&mInternal->mutex);
272 LeaveCriticalSection(&mInternal->mutex);
284 pthread_mutex_t mutex; member in struct:google::protobuf::Mutex::Internal
289 pthread_mutex_init(&mInternal->mutex, NULL);
293 pthread_mutex_destroy(&mInternal->mutex);
298 int result = pthread_mutex_lock(&mInternal->mutex);
[all...]
/external/valgrind/main/drd/
H A Ddrd_error.h111 Addr mutex; member in struct:__anon13856
124 Addr mutex; member in struct:__anon13858
131 Addr mutex; member in struct:__anon13859
H A Ddrd_pthread_intercepts.c226 * POSIX threads and DRD each have their own mutex type identification.
227 * Convert POSIX threads' mutex type to DRD's mutex type. In the code below
255 * Read the mutex type stored in the client memory used for the mutex
260 * which the mutex type is stored.
263 * @note glibc stores the mutex type in the lowest two bits, and uses the
267 static __always_inline MutexT DRD_(mutex_type)(pthread_mutex_t* mutex) argument
271 if (IS_ALIGNED(&mutex->__m_kind))
273 const int kind = mutex
566 pthread_mutex_init_intercept(pthread_mutex_t *mutex, const pthread_mutexattr_t* attr) argument
590 pthread_mutex_destroy_intercept(pthread_mutex_t* mutex) argument
607 pthread_mutex_lock_intercept(pthread_mutex_t* mutex) argument
624 pthread_mutex_trylock_intercept(pthread_mutex_t* mutex) argument
641 pthread_mutex_timedlock_intercept(pthread_mutex_t *mutex, const struct timespec *abs_timeout) argument
660 pthread_mutex_unlock_intercept(pthread_mutex_t *mutex) argument
713 pthread_cond_wait_intercept(pthread_cond_t *cond, pthread_mutex_t *mutex) argument
731 pthread_cond_timedwait_intercept(pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec* abstime) argument
[all...]
/external/valgrind/main/helgrind/
H A Dhg_intercepts.c407 pthread_mutex_t *mutex,
415 fprintf(stderr, "<< pthread_mxinit %p", mutex); fflush(stderr);
426 CALL_FN_W_WW(ret, fn, mutex,attr);
430 pthread_mutex_t*,mutex, long,mbRec);
446 pthread_mutex_t *mutex)
452 fprintf(stderr, "<< pthread_mxdestroy %p", mutex); fflush(stderr);
456 pthread_mutex_t*,mutex);
458 CALL_FN_W_W(ret, fn, mutex);
475 pthread_mutex_t *mutex)
481 fprintf(stderr, "<< pthread_mxlock %p", mutex); fflus
406 PTH_FUNC(int, pthreadZumutexZuinit, pthread_mutex_t *mutex, pthread_mutexattr_t* attr) argument
445 PTH_FUNC(int, pthreadZumutexZudestroy, pthread_mutex_t *mutex) argument
474 PTH_FUNC(int, pthreadZumutexZulock, pthread_mutex_t *mutex) argument
518 PTH_FUNC(int, pthreadZumutexZutrylock, pthread_mutex_t *mutex) argument
558 PTH_FUNC(int, pthreadZumutexZutimedlock, pthread_mutex_t *mutex, void* timeout) argument
598 PTH_FUNC(int, pthreadZumutexZuunlock, pthread_mutex_t *mutex) argument
648 pthread_cond_wait_WRK(pthread_cond_t* cond, pthread_mutex_t* mutex) argument
705 PTH_FUNC(int, pthreadZucondZuwaitZAZa, pthread_cond_t* cond, pthread_mutex_t* mutex) argument
710 PTH_FUNC(int, pthreadZucondZuwaitZa, pthread_cond_t* cond, pthread_mutex_t* mutex) argument
729 pthread_cond_timedwait_WRK(pthread_cond_t* cond, pthread_mutex_t* mutex, struct timespec* abstime) argument
794 PTH_FUNC(int, pthreadZucondZutimedwaitZAZa, pthread_cond_t* cond, pthread_mutex_t* mutex, struct timespec* abstime) argument
800 PTH_FUNC(int, pthreadZucondZutimedwait, pthread_cond_t* cond, pthread_mutex_t* mutex, struct timespec* abstime) argument
805 PTH_FUNC(int, pthreadZucondZutimedwaitZDZa, pthread_cond_t* cond, pthread_mutex_t* mutex, struct timespec* abstime) argument
810 PTH_FUNC(int, pthreadZucondZutimedwaitZuZa, pthread_cond_t* cond, pthread_mutex_t* mutex, struct timespec* abstime) argument
2154 QT4_FUNC(void*, _ZN6QMutexC1ENS_13RecursionModeE, void* mutex, long recmode) argument
2170 QT4_FUNC(void*, _ZN6QMutexD1Ev, void* mutex) argument
2184 QT4_FUNC(void*, _ZN6QMutexC2ENS_13RecursionModeE, void* mutex, long recmode) argument
2198 QT4_FUNC(void*, _ZN6QMutexD2Ev, void* mutex) argument
[all...]
/external/bluetooth/bluedroid/udrv/ulinux/
H A Duipc.c66 #define UIPC_LOCK() /*BTIF_TRACE_EVENT1(" %s lock", __FUNCTION__);*/ pthread_mutex_lock(&uipc_main.mutex);
67 #define UIPC_UNLOCK() /*BTIF_TRACE_EVENT1("%s unlock", __FUNCTION__);*/ pthread_mutex_unlock(&uipc_main.mutex);
91 pthread_mutex_t mutex; member in struct:__anon1457
251 pthread_mutex_init(&uipc_main.mutex, &attr);
/external/chromium/third_party/libjingle/source/talk/base/
H A Dopenssladapter.cc21 // TODO: Use a nicer abstraction for mutex.
40 #error You must define mutex operations appropriate for your platform!
44 MUTEX_TYPE mutex; member in struct:CRYPTO_dynlock_value
174 MUTEX_SETUP(value->mutex);
181 MUTEX_LOCK(l->mutex);
183 MUTEX_UNLOCK(l->mutex);
189 MUTEX_CLEANUP(l->mutex);
/external/qemu/audio/
H A Dcoreaudio.c163 pthread_mutex_t mutex; member in struct:coreAudioVoice
199 err = pthread_mutex_lock (&core->mutex);
213 err = pthread_mutex_unlock (&core->mutex);
273 /* destroy mutex */
274 err = pthread_mutex_destroy(&core->mutex);
276 dolog("Could not destroy mutex\nReason: %s\n", strerror (err));
298 /* create mutex */
299 err = pthread_mutex_init(&core->mutex, NULL);
301 dolog("Could not create mutex\nReason: %s\n", strerror (err));
/external/qemu/
H A Dposix-aio-compat.c88 static void mutex_lock(pthread_mutex_t *mutex) argument
90 int ret = pthread_mutex_lock(mutex);
94 static void mutex_unlock(pthread_mutex_t *mutex) argument
96 int ret = pthread_mutex_unlock(mutex);
100 static int cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, argument
103 int ret = pthread_cond_timedwait(cond, mutex, ts);
/external/v8/src/
H A Dplatform.h42 // sensitive like mutex locking/unlocking.
516 // The implementations of mutex should allow for nested/recursive locking.
522 // Locks the given mutex. If the mutex is currently unlocked, it becomes
523 // locked and owned by the calling thread, and immediately. If the mutex
525 // the mutex is unlocked.
528 // Unlocks the given mutex. The mutex is assumed to be locked and owned by
532 // Tries to lock the given mutex. Returns whether the mutex wa
564 ScopedLock(Mutex* mutex) argument
[all...]
/external/chromium/chrome/browser/sync/syncable/
H A Dsyncable_unittest.cc1429 Step() : condvar(&mutex), number(0) {}
1431 base::Lock mutex; member in struct:syncable::__anon2378::Step
1451 base::AutoLock scoped_lock(step_->mutex);
1524 base::AutoLock scoped_lock(step_->mutex);
H A Dsyncable.h987 // The mutex effectively protects all the indices, but not the
989 // from the index, the mutex can be unlocked and entry read or written.
991 // Never hold the mutex and do anything with the database or any
993 base::Lock mutex; member in struct:syncable::Directory::Kernel
1036 // time; this mutex protects that activity.
1039 // The next metahandle is protected by kernel mutex.
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator64.h145 SpinMutexLock l(&region->mutex);
167 SpinMutexLock l(&region->mutex);
232 SpinMutex mutex; member in struct:__sanitizer::SizeClassAllocator64::RegionInfo
282 SpinMutexLock l(&region->mutex);
294 SpinMutexLock l(&region->mutex);
/external/guava/guava/src/com/google/common/collect/
H A DSynchronized.java43 * serializable if the backing collection and the mutex are serializable.
45 * <p>If {@code null} is passed as the {@code mutex} parameter to any of this
47 * uses itself as the synchronization mutex.
60 final Object mutex; field in class:Synchronized.SynchronizedObject
62 SynchronizedObject(Object delegate, @Nullable Object mutex) { argument
64 this.mutex = (mutex == null) ? this : mutex;
74 synchronized (mutex) {
86 synchronized (mutex) {
95 collection( Collection<E> collection, @Nullable Object mutex) argument
102 SynchronizedCollection( Collection<E> delegate, @Nullable Object mutex) argument
204 set(Set<E> set, @Nullable Object mutex) argument
211 SynchronizedSet(Set<E> delegate, @Nullable Object mutex) argument
237 sortedSet( SortedSet<E> set, @Nullable Object mutex) argument
244 SynchronizedSortedSet(SortedSet<E> delegate, @Nullable Object mutex) argument
297 list(List<E> list, @Nullable Object mutex) argument
305 SynchronizedList(List<E> delegate, @Nullable Object mutex) argument
399 SynchronizedRandomAccessList(List<E> list, @Nullable Object mutex) argument
405 multiset( Multiset<E> multiset, @Nullable Object mutex) argument
419 SynchronizedMultiset(Multiset<E> delegate, @Nullable Object mutex) argument
500 multimap( Multimap<K, V> multimap, @Nullable Object mutex) argument
522 SynchronizedMultimap(Multimap<K, V> delegate, @Nullable Object mutex) argument
685 listMultimap( ListMultimap<K, V> multimap, @Nullable Object mutex) argument
696 SynchronizedListMultimap( ListMultimap<K, V> delegate, @Nullable Object mutex) argument
722 setMultimap( SetMultimap<K, V> multimap, @Nullable Object mutex) argument
735 SynchronizedSetMultimap( SetMultimap<K, V> delegate, @Nullable Object mutex) argument
769 sortedSetMultimap( SortedSetMultimap<K, V> multimap, @Nullable Object mutex) argument
779 SynchronizedSortedSetMultimap( SortedSetMultimap<K, V> delegate, @Nullable Object mutex) argument
811 typePreservingCollection( Collection<E> collection, @Nullable Object mutex) argument
825 typePreservingSet( Set<E> set, @Nullable Object mutex) argument
836 SynchronizedAsMapEntries( Set<Map.Entry<K, Collection<V>>> delegate, @Nullable Object mutex) argument
913 map(Map<K, V> map, @Nullable Object mutex) argument
923 SynchronizedMap(Map<K, V> delegate, @Nullable Object mutex) argument
1043 sortedMap( SortedMap<K, V> sortedMap, @Nullable Object mutex) argument
1051 SynchronizedSortedMap(SortedMap<K, V> delegate, @Nullable Object mutex) argument
1098 biMap(BiMap<K, V> bimap, @Nullable Object mutex) argument
1111 SynchronizedBiMap(BiMap<K, V> delegate, @Nullable Object mutex, @Nullable BiMap<V, K> inverse) argument
1156 SynchronizedAsMap(Map<K, Collection<V>> delegate, @Nullable Object mutex) argument
1198 SynchronizedAsMapValues( Collection<Collection<V>> delegate, @Nullable Object mutex) argument
[all...]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DSynchronized.java40 * serializable if the backing collection and the mutex are serializable.
42 * <p>If {@code null} is passed as the {@code mutex} parameter to any of this
44 * uses itself as the synchronization mutex.
57 final Object mutex; field in class:Synchronized.SynchronizedObject
59 SynchronizedObject(Object delegate, @Nullable Object mutex) { argument
61 this.mutex = (mutex == null) ? this : mutex;
71 synchronized (mutex) {
83 Collection<E> collection, @Nullable Object mutex) {
82 collection( Collection<E> collection, @Nullable Object mutex) argument
89 SynchronizedCollection( Collection<E> delegate, @Nullable Object mutex) argument
191 set(Set<E> set, @Nullable Object mutex) argument
198 SynchronizedSet(Set<E> delegate, @Nullable Object mutex) argument
224 sortedSet( SortedSet<E> set, @Nullable Object mutex) argument
231 SynchronizedSortedSet(SortedSet<E> delegate, @Nullable Object mutex) argument
284 list(List<E> list, @Nullable Object mutex) argument
292 SynchronizedList(List<E> delegate, @Nullable Object mutex) argument
386 SynchronizedRandomAccessList(List<E> list, @Nullable Object mutex) argument
392 multiset( Multiset<E> multiset, @Nullable Object mutex) argument
406 SynchronizedMultiset(Multiset<E> delegate, @Nullable Object mutex) argument
487 multimap( Multimap<K, V> multimap, @Nullable Object mutex) argument
509 SynchronizedMultimap(Multimap<K, V> delegate, @Nullable Object mutex) argument
672 listMultimap( ListMultimap<K, V> multimap, @Nullable Object mutex) argument
683 SynchronizedListMultimap( ListMultimap<K, V> delegate, @Nullable Object mutex) argument
709 setMultimap( SetMultimap<K, V> multimap, @Nullable Object mutex) argument
722 SynchronizedSetMultimap( SetMultimap<K, V> delegate, @Nullable Object mutex) argument
756 sortedSetMultimap( SortedSetMultimap<K, V> multimap, @Nullable Object mutex) argument
766 SynchronizedSortedSetMultimap( SortedSetMultimap<K, V> delegate, @Nullable Object mutex) argument
798 typePreservingCollection( Collection<E> collection, @Nullable Object mutex) argument
812 typePreservingSet( Set<E> set, @Nullable Object mutex) argument
823 SynchronizedAsMapEntries( Set<Map.Entry<K, Collection<V>>> delegate, @Nullable Object mutex) argument
900 map(Map<K, V> map, @Nullable Object mutex) argument
910 SynchronizedMap(Map<K, V> delegate, @Nullable Object mutex) argument
1030 sortedMap( SortedMap<K, V> sortedMap, @Nullable Object mutex) argument
1038 SynchronizedSortedMap(SortedMap<K, V> delegate, @Nullable Object mutex) argument
1085 biMap(BiMap<K, V> bimap, @Nullable Object mutex) argument
1098 SynchronizedBiMap(BiMap<K, V> delegate, @Nullable Object mutex, @Nullable BiMap<V, K> inverse) argument
1143 SynchronizedAsMap(Map<K, Collection<V>> delegate, @Nullable Object mutex) argument
1185 SynchronizedAsMapValues( Collection<Collection<V>> delegate, @Nullable Object mutex) argument
[all...]
/external/icu4c/common/
H A Dserv.cpp355 Mutex mutex(&lock);
400 inline XMutex(UMTX *mutex, UBool reentering) argument
401 : fMutex(mutex)
443 // if factory is not null, we're calling from within the mutex,
446 XMutex mutex(&lock, factory != NULL);
613 Mutex mutex(&lock);
690 Mutex mutex(&lock);
742 Mutex mutex(&lock);
846 Mutex mutex(&lock);
877 Mutex mutex(
[all...]
/external/blktrace/btreplay/
H A Dbtreplay.c85 * @mutex: Mutex used with condition variable to protect volatile values
106 pthread_mutex_t mutex; member in struct:thr_info
385 * @pmp: Pointer to the associated mutex
403 * @pmp: Pointer to the associated mutex
762 pthread_mutex_init(&tip->mutex, NULL);
847 pthread_mutex_destroy(&tip->mutex);
1011 pthread_mutex_lock(&tip->mutex);
1014 if (pthread_cond_wait(&tip->cond, &tip->mutex)) {
1021 pthread_mutex_unlock(&tip->mutex);
1053 pthread_mutex_lock(&tip->mutex);
[all...]
/external/chromium/testing/gtest/include/gtest/internal/
H A Dgtest-port.h1169 // MutexBase and Mutex implement mutex on pthreads-based platforms. They
1172 // Mutex mutex;
1174 // MutexLock lock(&mutex); // Acquires the mutex and releases it at the end
1179 // the following to define a static mutex:
1183 // You can forward declare a static mutex like this:
1187 // To create a dynamic mutex, just define an object of type Mutex.
1190 // Acquires this mutex.
1196 // Releases this mutex.
1200 // mutex whe
1251 GTestMutexLock(MutexBase* mutex) argument
[all...]
/external/gtest/include/gtest/internal/
H A Dgtest-port.h1203 // MutexBase and Mutex implement mutex on pthreads-based platforms. They
1206 // Mutex mutex;
1208 // MutexLock lock(&mutex); // Acquires the mutex and releases it at the end
1213 // the following to define a static mutex:
1217 // You can forward declare a static mutex like this:
1221 // To create a dynamic mutex, just define an object of type Mutex.
1224 // Acquires this mutex.
1230 // Releases this mutex.
1234 // mutex whe
1285 GTestMutexLock(MutexBase* mutex) argument
[all...]
/external/kernel-headers/original/linux/
H A Dserial_core.h144 #include <linux/mutex.h>
296 struct mutex mutex; member in struct:uart_state
/external/llvm/utils/unittest/googletest/include/gtest/internal/
H A Dgtest-port.h1190 // MutexBase and Mutex implement mutex on pthreads-based platforms. They
1193 // Mutex mutex;
1195 // MutexLock lock(&mutex); // Acquires the mutex and releases it at the end
1200 // the following to define a static mutex:
1204 // You can forward declare a static mutex like this:
1208 // To create a dynamic mutex, just define an object of type Mutex.
1211 // Acquires this mutex.
1217 // Releases this mutex.
1221 // mutex whe
1272 GTestMutexLock(MutexBase* mutex) argument
[all...]
/external/valgrind/tsan/
H A Dts_valgrind_intercepts.c850 pthread_mutex_t *mutex,
858 fprintf(stderr, "<< pthread_mxinit %p", mutex); fflush(stderr);
869 CALL_FN_W_WW(ret, fn, mutex,attr);
873 pthread_mutex_t*,mutex, long,mbRec);
887 pthread_mutex_t *mutex)
893 fprintf(stderr, "<< pthread_mxdestroy %p", mutex); fflush(stderr);
897 pthread_mutex_t*,mutex);
899 CALL_FN_W_W(ret, fn, mutex);
914 pthread_mutex_t *mutex)
921 fprintf(stderr, "<< pthread_mxlock %p", mutex); fflus
849 PTH_FUNC(int, pthreadZumutexZuinit, pthread_mutex_t *mutex, pthread_mutexattr_t* attr) argument
886 PTH_FUNC(int, pthreadZumutexZudestroy, pthread_mutex_t *mutex) argument
913 PTH_FUNC(int, pthreadZumutexZulock, pthread_mutex_t *mutex) argument
956 pthread_mutex_trylock_WRK(pthread_mutex_t *mutex) argument
986 PTH_FUNC(int, pthreadZumutexZutrylock, pthread_mutex_t *mutex) argument
995 PTH_FUNC(int, pthreadZumutexZutimedlock, pthread_mutex_t *mutex, void* timeout) argument
1030 PTH_FUNC(int, pthreadZumutexZuunlock, pthread_mutex_t *mutex) argument
1162 pthread_cond_wait_WRK(pthread_cond_t* cond, pthread_mutex_t* mutex) argument
1199 PTH_FUNC(int, pthreadZucondZuwaitZAZa, pthread_cond_t* cond, pthread_mutex_t* mutex) argument
1205 PTH_FUNC(int, pthreadZucondZuwait$Za, pthread_cond_t* cond, pthread_mutex_t* mutex) argument
1213 pthread_cond_timedwait_WRK(pthread_cond_t* cond, pthread_mutex_t* mutex, struct timespec* abstime) argument
1258 PTH_FUNC(int, pthreadZucondZutimedwaitZAZa, pthread_cond_t* cond, pthread_mutex_t* mutex, struct timespec* abstime) argument
1265 PTH_FUNC(int, pthreadZucondZutimedwait$Za, pthread_cond_t* cond, pthread_mutex_t* mutex, struct timespec* abstime) argument
1272 PTH_FUNC(int, pthreadZucondZutimedwaitZurelativeZunp, pthread_cond_t* cond, pthread_mutex_t* mutex, struct timespec* abstime) argument
[all...]
/external/blktrace/
H A Dblktrace.c103 * data onto. It's list is protected above (tracer_devpath_head.mutex)
124 * We will use a mutex to guard each of the trace_buf list. The tracers
142 pthread_mutex_t mutex; member in struct:tracer_devpath_head
522 static void t_pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) argument
527 pthread_cond_timedwait(cond, mutex, &ts);
1140 pthread_mutex_destroy(&hd->mutex);
1161 pthread_mutex_init(&hd->mutex, NULL);
1177 pthread_mutex_lock(&hd->mutex);
1179 pthread_mutex_unlock(&hd->mutex);
1399 pthread_mutex_lock(&hd->mutex);
[all...]
/external/dbus/dbus/
H A Ddbus-connection.c68 _dbus_mutex_lock ((connection)->mutex); \
75 _dbus_mutex_unlock ((connection)->mutex); \
249 DBusMutex *mutex; /**< Lock on the entire DBusConnection */ member in struct:DBusConnection
300 * from connection->mutex and all bitfields in a word have to be read/written together.
431 * @param mutex_loc return for the location of the main mutex pointer
432 * @param dispatch_mutex_loc return location of the dispatch mutex pointer
433 * @param io_path_mutex_loc return location of the io_path mutex pointer
447 *mutex_loc = connection->mutex;
1033 * IO path mutex while waiting for the I/O path.
1050 /* We will only touch io_path_acquired which is protected by our mutex */
[all...]
H A Ddbus-sysdeps-win.c2498 HANDLE mutex; local
2501 mutex = CreateMutexA( NULL, FALSE, mutexname );
2502 if( !mutex )
2507 gotMutex = WaitForSingleObject( mutex, INFINITE );
2511 ReleaseMutex (mutex);
2512 CloseHandle (mutex);
2519 return mutex;
2523 void _dbus_global_unlock (HANDLE mutex) argument
2525 ReleaseMutex (mutex);
2526 CloseHandle (mutex);
2676 HANDLE mutex; local
[all...]
/external/clang/test/SemaCXX/
H A Dwarn-thread-safety-analysis.cpp206 sls_mu.Lock(); // expected-note {{mutex acquired here}}
207 } // expected-warning{{mutex 'sls_mu' is still locked at the end of function}}
211 sls_mu.Lock(); // expected-note{{mutex acquired here}}
213 sls_mu2.Lock(); // expected-note{{mutex acquired here}}
214 } // expected-warning{{mutex 'sls_mu' is not locked on every path through here}} \
215 // expected-warning{{mutex 'sls_mu2' is not locked on every path through here}}
218 sls_mu.Lock(); // expected-note {{mutex acquired here}}
221 } // expected-warning{{mutex 'sls_mu' is not locked on every path through here}}
225 sls_mu.Lock(); // expected-note {{mutex acquired here}}
234 expected-warning{{mutex 'sls_m
1937 struct __attribute__((lockable)) mutex { struct in namespace:GoingNative
[all...]

Completed in 1105 milliseconds

12345