/external/clang/test/Modules/Inputs/merge-implicit-special-members/ |
H A D | a.h | 1 struct pthread_mutex_t { int lock; }; member in struct:pthread_mutex_t
|
H A D | b.h | 1 struct pthread_mutex_t { int lock; }; member in struct:pthread_mutex_t
|
H A D | c.h | 3 int k = pthread_mutex_t().lock;
|
/external/clang/test/Modules/ |
H A D | merge-implicit-special-members.cpp | 5 int n = pthread_mutex_t().lock;
|
/external/bison/lib/glthread/ |
H A D | lock.c | 23 #include "glthread/lock.h" 38 glthread_rwlock_init_multithreaded (gl_rwlock_t *lock) argument 42 err = pthread_rwlock_init (&lock->rwlock, NULL); 45 lock->initialized = 1; 50 glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock) argument 52 if (!lock->initialized) 56 err = pthread_mutex_lock (&lock->guard); 59 if (!lock->initialized) 61 err = glthread_rwlock_init_multithreaded (lock); 64 pthread_mutex_unlock (&lock 76 glthread_rwlock_wrlock_multithreaded(gl_rwlock_t *lock) argument 102 glthread_rwlock_unlock_multithreaded(gl_rwlock_t *lock) argument 110 glthread_rwlock_destroy_multithreaded(gl_rwlock_t *lock) argument 128 glthread_rwlock_init_multithreaded(gl_rwlock_t *lock) argument 147 glthread_rwlock_rdlock_multithreaded(gl_rwlock_t *lock) argument 176 glthread_rwlock_wrlock_multithreaded(gl_rwlock_t *lock) argument 203 glthread_rwlock_unlock_multithreaded(gl_rwlock_t *lock) argument 259 glthread_rwlock_destroy_multithreaded(gl_rwlock_t *lock) argument 284 glthread_recursive_lock_init_multithreaded(gl_recursive_lock_t *lock) argument 313 glthread_recursive_lock_init_multithreaded(gl_recursive_lock_t *lock) argument 341 glthread_recursive_lock_lock_multithreaded(gl_recursive_lock_t *lock) argument 367 glthread_recursive_lock_unlock_multithreaded(gl_recursive_lock_t *lock) argument 375 glthread_recursive_lock_destroy_multithreaded(gl_recursive_lock_t *lock) argument 393 glthread_recursive_lock_init_multithreaded(gl_recursive_lock_t *lock) argument 406 glthread_recursive_lock_lock_multithreaded(gl_recursive_lock_t *lock) argument 427 glthread_recursive_lock_unlock_multithreaded(gl_recursive_lock_t *lock) argument 443 glthread_recursive_lock_destroy_multithreaded(gl_recursive_lock_t *lock) argument 532 glthread_recursive_lock_init_multithreaded(gl_recursive_lock_t *lock) argument 545 glthread_recursive_lock_lock_multithreaded(gl_recursive_lock_t *lock) argument 566 glthread_recursive_lock_unlock_multithreaded(gl_recursive_lock_t *lock) argument 582 glthread_recursive_lock_destroy_multithreaded(gl_recursive_lock_t *lock) argument 637 glthread_lock_init_func(gl_lock_t *lock) argument 644 glthread_lock_lock_func(gl_lock_t *lock) argument 662 glthread_lock_unlock_func(gl_lock_t *lock) argument 671 glthread_lock_destroy_func(gl_lock_t *lock) argument 774 glthread_rwlock_init_func(gl_rwlock_t *lock) argument 784 glthread_rwlock_rdlock_func(gl_rwlock_t *lock) argument 838 glthread_rwlock_wrlock_func(gl_rwlock_t *lock) argument 891 glthread_rwlock_unlock_func(gl_rwlock_t *lock) argument 935 glthread_rwlock_destroy_func(gl_rwlock_t *lock) argument 953 glthread_recursive_lock_init_func(gl_recursive_lock_t *lock) argument 962 glthread_recursive_lock_lock_func(gl_recursive_lock_t *lock) argument 992 glthread_recursive_lock_unlock_func(gl_recursive_lock_t *lock) argument 1007 glthread_recursive_lock_destroy_func(gl_recursive_lock_t *lock) argument [all...] |
/external/autotest/client/tests/monotonic_time/src/ |
H A D | spinlock.h | 14 static inline void spin_lock(spinlock_t *lock) argument 18 " lock; btsl $0,%0\n" 20 : "=g"(*lock) : : "memory"); 23 static inline void spin_unlock(spinlock_t *lock) argument 25 __asm__ __volatile__("movl $0,%0; rep; nop" : "=g"(*lock) :: "memory");
|
/external/valgrind/none/tests/ |
H A D | pth_mutexspeed.stdout.exp | 1 begin 100000 lock--unlocks 2 done 100000 lock--unlocks
|
/external/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_interceptors_mac.cc | 25 TSAN_INTERCEPTOR(void, OSSpinLockLock, volatile OSSpinLock *lock) { argument 28 return REAL(OSSpinLockLock)(lock); 30 SCOPED_TSAN_INTERCEPTOR(OSSpinLockLock, lock); 31 REAL(OSSpinLockLock)(lock); 32 Acquire(thr, pc, (uptr)lock); 35 TSAN_INTERCEPTOR(bool, OSSpinLockTry, volatile OSSpinLock *lock) { argument 38 return REAL(OSSpinLockTry)(lock); 40 SCOPED_TSAN_INTERCEPTOR(OSSpinLockTry, lock); 41 bool result = REAL(OSSpinLockTry)(lock); 43 Acquire(thr, pc, (uptr)lock); 47 TSAN_INTERCEPTOR(void, OSSpinLockUnlock, volatile OSSpinLock *lock) argument 57 TSAN_INTERCEPTOR(void, os_lock_lock, void *lock) argument 67 TSAN_INTERCEPTOR(bool, os_lock_trylock, void *lock) argument 79 TSAN_INTERCEPTOR(void, os_lock_unlock, void *lock) argument [all...] |
/external/valgrind/helgrind/ |
H A D | hg_lock_n_thread.c | 65 static Bool is_sane_Lock_BASE ( Lock* lock ) 67 if (lock == NULL 68 || (lock->magic != LockN_MAGIC && lock->magic != LockP_MAGIC)) 70 switch (lock->kind) { 74 if (lock->heldBy == NULL) { 75 if (lock->acquired_at != NULL) return False; 77 return !lock->heldW; 79 if (lock->acquired_at == NULL) return False; 84 if (VG_(isEmptyBag)(lock [all...] |
/external/webrtc/webrtc/system_wrappers/source/ |
H A D | rw_lock.cc | 27 RWLockWrapper* lock = RWLockWin::Create(); local 28 if (lock) { 29 return lock;
|
/external/boringssl/src/crypto/ |
H A D | thread_none.c | 19 void CRYPTO_MUTEX_init(CRYPTO_MUTEX *lock) {} argument 21 void CRYPTO_MUTEX_lock_read(CRYPTO_MUTEX *lock) {} argument 23 void CRYPTO_MUTEX_lock_write(CRYPTO_MUTEX *lock) {} argument 25 void CRYPTO_MUTEX_unlock(CRYPTO_MUTEX *lock) {} argument 27 void CRYPTO_MUTEX_cleanup(CRYPTO_MUTEX *lock) {} argument 29 void CRYPTO_STATIC_MUTEX_lock_read(struct CRYPTO_STATIC_MUTEX *lock) {} argument 31 void CRYPTO_STATIC_MUTEX_lock_write(struct CRYPTO_STATIC_MUTEX *lock) {} argument 33 void CRYPTO_STATIC_MUTEX_unlock(struct CRYPTO_STATIC_MUTEX *lock) {} argument
|
/external/clang/test/CodeGen/ |
H A D | 2003-11-01-C99-CompoundLiteral.c | 4 typedef struct wait_queue_head_t { spinlock_t lock; } wait_queue_head_t; member in struct:wait_queue_head_t 6 struct wait_queue_head_t work = { lock: (spinlock_t) { 0 }, };
|
H A D | 2003-11-04-EmptyStruct.c | 4 struct fs_struct { rwlock_t lock; int umask; }; member in struct:fs_struct 5 void __copy_fs_struct(struct fs_struct *fs) { fs->lock = (rwlock_t) { }; }
|
/external/parameter-framework/asio/include/asio/detail/ |
H A D | posix_event.hpp | 43 void signal(Lock& lock) argument 45 this->signal_all(lock); 50 void signal_all(Lock& lock) argument 52 ASIO_ASSERT(lock.locked()); 53 (void)lock; 60 void unlock_and_signal_one(Lock& lock) argument 62 ASIO_ASSERT(lock.locked()); 65 lock.unlock(); 72 bool maybe_unlock_and_signal_one(Lock& lock) argument 74 ASIO_ASSERT(lock 87 clear(Lock& lock) argument 96 wait(Lock& lock) argument [all...] |
/external/parameter-framework/asio-1.10.6/include/asio/detail/ |
H A D | posix_event.hpp | 43 void signal(Lock& lock) argument 45 this->signal_all(lock); 50 void signal_all(Lock& lock) argument 52 ASIO_ASSERT(lock.locked()); 53 (void)lock; 60 void unlock_and_signal_one(Lock& lock) argument 62 ASIO_ASSERT(lock.locked()); 65 lock.unlock(); 72 bool maybe_unlock_and_signal_one(Lock& lock) argument 74 ASIO_ASSERT(lock 87 clear(Lock& lock) argument 96 wait(Lock& lock) argument [all...] |
/external/libevent/ |
H A D | evthread.c | 80 event_warnx("Trying to disable lock functions after " 91 target->lock == cbs->lock && 96 event_warnx("Can't change lock callbacks once they have been " 100 if (cbs->alloc && cbs->free && cbs->lock && cbs->unlock) { 153 * lock to protect count. */ 155 void *lock; member in struct:debug_lock 165 if (!(result->lock = _original_lock_fns.alloc( 171 result->lock = NULL; 182 struct debug_lock *lock local 195 evthread_debug_lock_mark_locked(unsigned mode, struct debug_lock *lock) argument 212 struct debug_lock *lock = lock_; local 227 evthread_debug_lock_mark_unlocked(unsigned mode, struct debug_lock *lock) argument 245 struct debug_lock *lock = lock_; local 257 struct debug_lock *lock = _lock; local 296 struct debug_lock *lock = lock_; local 310 struct debug_lock *lock = lock_; local 329 struct debug_lock *lock; local 353 struct debug_lock *lock = lock_; local 383 _evthreadimpl_lock_free(void *lock, unsigned locktype) argument 389 _evthreadimpl_lock_lock(unsigned mode, void *lock) argument 397 _evthreadimpl_lock_unlock(unsigned mode, void *lock) argument 425 _evthreadimpl_cond_wait(void *cond, void *lock, const struct timeval *tv) argument [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
H A D | PowerManagerTest.java | 42 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); 43 assertFalse(lock.isHeld()); 44 lock.acquire(); 45 assertTrue(lock.isHeld()); 46 lock.acquire(); 48 assertTrue(lock.isHeld()); 49 lock.release(); 51 assertTrue(lock.isHeld()); 52 lock.release(); 53 assertFalse(lock [all...] |
/external/libmtp/ |
H A D | libmtp.sh | 20 # New code, using lock files instead of copying /dev/console permissions 25 if [ -f /var/run/console/console.lock ] 27 DEVICEOWNER=`cat /var/run/console/console.lock` 28 elif [ -f /var/run/console.lock ] 30 DEVICEOWNER=`cat /var/run/console.lock` 31 elif [ -f /var/lock/console.lock ] 33 DEVICEOWNER=`cat /var/lock/console.lock`
|
H A D | libmtp.sh.in | 20 # New code, using lock files instead of copying /dev/console permissions 25 if [ -f /var/run/console/console.lock ] 27 DEVICEOWNER=`cat /var/run/console/console.lock` 28 elif [ -f /var/run/console.lock ] 30 DEVICEOWNER=`cat /var/run/console.lock` 31 elif [ -f /var/lock/console.lock ] 33 DEVICEOWNER=`cat /var/lock/console.lock`
|
/external/jemalloc/test/src/ |
H A D | mtx.c | 12 if (!InitializeCriticalSectionAndSpinCount(&mtx->lock, _CRT_SPINCOUNT)) 15 mtx->lock = 0; 22 if (pthread_mutex_init(&mtx->lock, &attr) != 0) { 38 pthread_mutex_destroy(&mtx->lock); 47 EnterCriticalSection(&mtx->lock); 49 OSSpinLockLock(&mtx->lock); 51 pthread_mutex_lock(&mtx->lock); 60 LeaveCriticalSection(&mtx->lock); 62 OSSpinLockUnlock(&mtx->lock); 64 pthread_mutex_unlock(&mtx->lock); [all...] |
/external/libchrome/base/synchronization/ |
H A D | lock_unittest.cc | 5 #include "base/synchronization/lock.h" 20 explicit BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {} argument 53 Lock lock; local 54 BasicLockTestThread thread(&lock); 61 lock.Acquire(); 63 lock.Release(); 66 lock.Acquire(); 69 lock.Release(); 72 if (lock 95 TryLockTestThread(Lock* lock) argument 113 Lock lock; local 153 MutexLockTestThread(Lock* lock, int* value) argument 156 DoStuff(Lock* lock, int* value) argument 176 Lock lock; local 192 Lock lock; local [all...] |
/external/sfntly/cpp/src/test/ |
H A D | lock_test.cc | 20 #include "sfntly/port/lock.h" 29 BasicLockTestThread(Lock* lock) : lock_(lock), acquired_(0) {} argument 62 Lock lock; local 63 BasicLockTestThread thread(&lock); 70 lock.Acquire(); 72 lock.Unlock(); 75 lock.Acquire(); 78 lock.Unlock(); 81 if (lock 106 TryLockTestThread(Lock* lock) argument 124 Lock lock; local 165 MutexLockTestThread(Lock* lock, int* value) argument 168 DoStuff(Lock* lock, int* value) argument 190 Lock lock; local 207 Lock lock; local [all...] |
/external/jemalloc/include/jemalloc/internal/ |
H A D | mutex.h | 30 SRWLOCK lock; member in struct:malloc_mutex_s 32 CRITICAL_SECTION lock; 35 OSSpinLock lock; 37 pthread_mutex_t lock; 40 pthread_mutex_t lock; 78 AcquireSRWLockExclusive(&mutex->lock); 80 EnterCriticalSection(&mutex->lock); 83 OSSpinLockLock(&mutex->lock); 85 pthread_mutex_lock(&mutex->lock); 97 ReleaseSRWLockExclusive(&mutex->lock); [all...] |
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
H A D | CycleDetectingLockFactoryTest.java | 91 // In the unittest, create each ordered factory with its own set of lock 102 lockA.lock(); 103 lockB.lock(); 109 lockB.lock(); 111 lockA.lock(); 120 lockA.lock(); 130 lockA.lock(); 136 lockA.lock(); 137 lockB.lock(); 142 lockB.lock(); 509 final Lock lock; field in class:CycleDetectingLockFactoryTest.LockingThread 511 LockingThread(Lock lock) argument [all...] |
/external/clang/test/Modules/Inputs/thread-safety/ |
H A D | a.h | 2 void lock() __attribute__((exclusive_lock_function));
|