/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/python/cpython2/Python/ |
H A D | thread_lwp.h | 9 struct lock { struct 63 struct lock *lock; local 70 lock = (struct lock *) malloc(sizeof(struct lock)); 71 lock->lock_locked = 0; 72 (void) mon_create(&lock->lock_monitor); 73 (void) cv_create(&lock->lock_condvar, lock 78 PyThread_free_lock(PyThread_type_lock lock) argument 85 PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) argument 106 PyThread_release_lock(PyThread_type_lock lock) argument [all...] |
H A D | thread_foobar.h | 51 dprintf(("PyThread_allocate_lock() -> %p\n", lock)); 52 return (PyThread_type_lock) lock; 56 PyThread_free_lock(PyThread_type_lock lock) argument 58 dprintf(("PyThread_free_lock(%p) called\n", lock)); 62 PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) argument 66 dprintf(("PyThread_acquire_lock(%p, %d) called\n", lock, waitflag)); 67 dprintf(("PyThread_acquire_lock(%p, %d) -> %d\n", lock, waitflag, success)); 72 PyThread_release_lock(PyThread_type_lock lock) argument 74 dprintf(("PyThread_release_lock(%p) called\n", lock));
|
H A D | thread_cthread.h | 68 mutex_t lock; local 74 lock = mutex_alloc(); 75 if (mutex_init(lock)) { 77 free((void *) lock); 78 lock = 0; 80 dprintf(("PyThread_allocate_lock() -> %p\n", lock)); 81 return (PyThread_type_lock) lock; 85 PyThread_free_lock(PyThread_type_lock lock) argument 87 dprintf(("PyThread_free_lock(%p) called\n", lock)); 88 mutex_free(lock); 92 PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) argument 108 PyThread_release_lock(PyThread_type_lock 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/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_read(CRYPTO_MUTEX *lock) {} argument 27 void CRYPTO_MUTEX_unlock_write(CRYPTO_MUTEX *lock) {} argument 29 void CRYPTO_MUTEX_cleanup(CRYPTO_MUTEX *lock) {} argument 31 void CRYPTO_STATIC_MUTEX_lock_read(struct CRYPTO_STATIC_MUTEX *lock) {} argument 33 void CRYPTO_STATIC_MUTEX_lock_write(struct CRYPTO_STATIC_MUTEX *lock) {} argument 35 void CRYPTO_STATIC_MUTEX_unlock_read(struct CRYPTO_STATIC_MUTEX *lock) {} argument 37 void CRYPTO_STATIC_MUTEX_unlock_write(struct CRYPTO_STATIC_MUTEX *lock) {} argument [all...] |
/external/ltp/testcases/network/nfs/nfslock01/ |
H A D | nfs_flock_func.c | 8 struct flock lock; local 10 lock.l_type = type; 11 lock.l_start = offset; 12 lock.l_whence = whence; 13 lock.l_len = len; 15 return (fcntl(fd, cmd, &lock)); 20 struct flock lock; local 22 lock.l_type = type; 23 lock.l_start = offset; 24 lock [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/linux-kselftest/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/ |
H A D | locks.h | 20 /* Only use one lock mechanism. Select which one. */ 26 static inline void lock_impl_lock(struct lock_impl *lock) argument 28 BUG_ON(pthread_mutex_lock(&lock->mutex)); 31 static inline void lock_impl_unlock(struct lock_impl *lock) argument 33 BUG_ON(pthread_mutex_unlock(&lock->mutex)); 36 static inline bool lock_impl_trylock(struct lock_impl *lock) argument 38 int err = pthread_mutex_trylock(&lock->mutex); 47 static inline void lock_impl_init(struct lock_impl *lock) argument 49 pthread_mutex_init(&lock->mutex, NULL); 55 /* Spinlock that assumes that it always gets the lock immediatel 61 lock_impl_trylock(struct lock_impl *lock) argument 79 lock_impl_lock(struct lock_impl *lock) argument 93 lock_impl_unlock(struct lock_impl *lock) argument 110 lock_impl_init(struct lock_impl *lock) argument 131 spin_lock_init(spinlock_t *lock) argument 136 spin_lock(spinlock_t *lock) argument 148 spin_unlock(spinlock_t *lock) argument 166 spin_trylock(spinlock_t *lock) argument [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/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/python/cpython3/Python/ |
H A D | thread_foobar.h | 50 dprintf(("PyThread_allocate_lock() -> %p\n", lock)); 51 return (PyThread_type_lock) lock; 55 PyThread_free_lock(PyThread_type_lock lock) argument 57 dprintf(("PyThread_free_lock(%p) called\n", lock)); 61 PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) argument 63 return PyThread_acquire_lock_timed(lock, waitflag ? -1 : 0, 0); 67 PyThread_acquire_lock_timed(PyThread_type_lock lock, PY_TIMEOUT_T microseconds, argument 72 dprintf(("PyThread_acquire_lock_timed(%p, %lld, %d) called\n", lock, microseconds, intr_flag)); 74 lock, microseconds, intr_flag, success)); 79 PyThread_release_lock(PyThread_type_lock lock) argument [all...] |
/external/libevent/ |
H A D | evthread.c | 107 event_warnx("Trying to disable lock functions after " 118 target->lock == cbs->lock && 123 event_warnx("Can't change lock callbacks once they have been " 127 if (cbs->alloc && cbs->free && cbs->lock && cbs->unlock) { 189 * lock to protect count. */ 191 void *lock; member in struct:debug_lock 201 if (!(result->lock = original_lock_fns_.alloc( 207 result->lock = NULL; 219 struct debug_lock *lock local 234 evthread_debug_lock_mark_locked(unsigned mode, struct debug_lock *lock) argument 252 struct debug_lock *lock = lock_; local 267 evthread_debug_lock_mark_unlocked(unsigned mode, struct debug_lock *lock) argument 288 struct debug_lock *lock = lock_; local 300 struct debug_lock *lock = lock_; local 347 struct debug_lock *lock = lock_; local 361 struct debug_lock *lock = lock_; local 380 struct debug_lock *lock; local 404 struct debug_lock *lock = lock_ ? lock_ : debug_lock_alloc(locktype); local 441 evthreadimpl_lock_free_(void *lock, unsigned locktype) argument 447 evthreadimpl_lock_lock_(unsigned mode, void *lock) argument 455 evthreadimpl_lock_unlock_(unsigned mode, void *lock) argument 489 evthreadimpl_cond_wait_(void *cond, void *lock, const struct timeval *tv) argument [all...] |
/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/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/jemalloc/test/include/test/ |
H A D | mtx.h | 10 CRITICAL_SECTION lock; member in struct:__anon9156 12 os_unfair_lock lock; 14 OSSpinLock lock; 16 pthread_mutex_t lock;
|
/external/libcxx/test/libcxx/thread/thread.mutex/ |
H A D | thread_safety_missing_unlock.fail.cpp | 27 m.lock();
|
/external/libmtp/ |
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/v8/tools/clang/plugins/tests/ |
H A D | trivial_ctor.cpp | 18 MySpinLock lock; local
|