/external/clang/test/Modules/Inputs/merge-implicit-special-members/ |
a.h | 1 struct pthread_mutex_t { int lock; }; member in struct:pthread_mutex_t
|
b.h | 1 struct pthread_mutex_t { int lock; }; member in struct:pthread_mutex_t
|
c.h | 3 int k = pthread_mutex_t().lock;
|
/device/google/contexthub/firmware/os/core/ |
trylock.c | 21 void trylockInit(struct TryLock *lock) 23 lock->lock = 0; 26 void trylockRelease(struct TryLock *lock) 28 lock->lock = 0; 31 bool trylockTryTake(struct TryLock *lock) 33 return !atomicXchgByte(&lock->lock, 1);
|
/external/clang/test/Modules/ |
merge-implicit-special-members.cpp | 5 int n = pthread_mutex_t().lock;
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
thread_lwp.h | 9 struct lock {
struct 59 * Lock support.
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->lock_monitor); [all...] |
thread_foobar.h | 41 * Lock support.
51 dprintf(("PyThread_allocate_lock() -> %p\n", lock));
52 return (PyThread_type_lock) lock;
56 PyThread_free_lock(PyThread_type_lock lock)
58 dprintf(("PyThread_free_lock(%p) called\n", lock));
62 PyThread_acquire_lock(PyThread_type_lock lock, int waitflag)
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)
74 dprintf(("PyThread_release_lock(%p) called\n", lock));
[all...] |
thread_cthread.h | 63 * Lock support.
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)
87 dprintf(("PyThread_free_lock(%p) called\n", lock));
[all...] |
/external/python/cpython2/Python/ |
thread_lwp.h | 9 struct lock { struct 59 * Lock support. 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->lock_monitor) [all...] |
thread_foobar.h | 41 * Lock support. 51 dprintf(("PyThread_allocate_lock() -> %p\n", lock)); 52 return (PyThread_type_lock) lock; 56 PyThread_free_lock(PyThread_type_lock lock) 58 dprintf(("PyThread_free_lock(%p) called\n", lock)); 62 PyThread_acquire_lock(PyThread_type_lock lock, int waitflag) 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) 74 dprintf(("PyThread_release_lock(%p) called\n", lock)); [all...] |
thread_cthread.h | 63 * Lock support. 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) 87 dprintf(("PyThread_free_lock(%p) called\n", lock)); [all...] |
/bionic/libc/bionic/ |
pthread_spinlock.cpp | 37 Lock lock; member in struct:pthread_spinlock_internal_t 46 static inline pthread_spinlock_internal_t* __get_internal_spinlock(pthread_spinlock_t* lock) { 47 return reinterpret_cast<pthread_spinlock_internal_t*>(lock); 51 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); local 52 lock->lock.init(pshared); 57 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); local 58 return lock->lock.trylock() ? 0 : EBUSY 62 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); local 67 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); local 78 pthread_spinlock_internal_t* lock = __get_internal_spinlock(lock_interface); local [all...] |
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/ |
PortableMutex.h | 38 static __inline__ void mutex_lock(mutex_t* lock) { 39 pthread_mutex_lock(lock); 42 static __inline__ void mutex_unlock(mutex_t* lock) { 43 pthread_mutex_unlock(lock); 46 static __inline__ int mutex_init(mutex_t* lock) { 47 return pthread_mutex_init(lock, NULL); 50 static __inline__ void mutex_destroy(mutex_t* lock) { 51 pthread_mutex_destroy(lock); 58 CRITICAL_SECTION lock[1]; member in struct:__anon1898 63 static __inline__ void mutex_lock(mutex_t* lock) { [all...] |
/external/autotest/client/tests/monotonic_time/src/ |
spinlock.h | 14 static inline void spin_lock(spinlock_t *lock) 18 " lock; btsl $0,%0\n" 20 : "=g"(*lock) : : "memory"); 23 static inline void spin_unlock(spinlock_t *lock) 25 __asm__ __volatile__("movl $0,%0; rep; nop" : "=g"(*lock) :: "memory");
|
/external/boringssl/src/crypto/ |
thread_none.c | 19 void CRYPTO_MUTEX_init(CRYPTO_MUTEX *lock) {} 21 void CRYPTO_MUTEX_lock_read(CRYPTO_MUTEX *lock) {} 23 void CRYPTO_MUTEX_lock_write(CRYPTO_MUTEX *lock) {} 25 void CRYPTO_MUTEX_unlock_read(CRYPTO_MUTEX *lock) {} 27 void CRYPTO_MUTEX_unlock_write(CRYPTO_MUTEX *lock) {} 29 void CRYPTO_MUTEX_cleanup(CRYPTO_MUTEX *lock) {} 31 void CRYPTO_STATIC_MUTEX_lock_read(struct CRYPTO_STATIC_MUTEX *lock) {} 33 void CRYPTO_STATIC_MUTEX_lock_write(struct CRYPTO_STATIC_MUTEX *lock) {} 35 void CRYPTO_STATIC_MUTEX_unlock_read(struct CRYPTO_STATIC_MUTEX *lock) {} 37 void CRYPTO_STATIC_MUTEX_unlock_write(struct CRYPTO_STATIC_MUTEX *lock) {} [all...] |
/external/ltp/testcases/network/nfs/nfslock01/ |
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.l_whence = whence [all...] |
/external/linux-kselftest/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/ |
locks.h | 20 /* Only use one lock mechanism. Select which one. */ 26 static inline void lock_impl_lock(struct lock_impl *lock) 28 BUG_ON(pthread_mutex_lock(&lock->mutex)); 31 static inline void lock_impl_unlock(struct lock_impl *lock) 33 BUG_ON(pthread_mutex_unlock(&lock->mutex)); 36 static inline bool lock_impl_trylock(struct lock_impl *lock) 38 int err = pthread_mutex_trylock(&lock->mutex); 47 static inline void lock_impl_init(struct lock_impl *lock) 49 pthread_mutex_init(&lock->mutex, NULL); 55 /* Spinlock that assumes that it always gets the lock immediately. * [all...] |
/device/linaro/bootloader/arm-trusted-firmware/include/lib/ |
spinlock.h | 15 volatile uint32_t lock; member in struct:spinlock 18 void spin_lock(spinlock_t *lock); 19 void spin_unlock(spinlock_t *lock); 23 /* Spin lock definitions for use in assembly */
|
/external/webrtc/webrtc/system_wrappers/source/ |
rw_lock.cc | 27 RWLockWrapper* lock = RWLockWin::Create(); local 28 if (lock) { 29 return lock;
|
/external/grpc-grpc/src/core/lib/gpr/ |
spinlock.h | 40 #define gpr_spinlock_trylock(lock) (gpr_atm_acq_cas(&(lock)->atm, 0, 1)) 41 #define gpr_spinlock_unlock(lock) (gpr_atm_rel_store(&(lock)->atm, 0)) 42 #define gpr_spinlock_lock(lock) \ 44 } while (!gpr_spinlock_trylock((lock)))
|
/external/clang/test/CodeGen/ |
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 }, };
|
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/libevent/ |
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 = lock_ local 252 struct debug_lock *lock = lock_; local 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 [all...] |
/external/parameter-framework/asio-1.10.6/include/asio/detail/ |
posix_event.hpp | 42 template <typename Lock> 43 void signal(Lock& lock) 45 this->signal_all(lock); 49 template <typename Lock> 50 void signal_all(Lock& lock) 52 ASIO_ASSERT(lock.locked()); 53 (void)lock; 59 template <typename Lock> [all...] |
/external/grpc-grpc/src/core/lib/iomgr/ |
combiner.cc | 58 // other bits - number of items queued on the lock (STATE_ELEM_COUNT_LOW_BIT) 78 grpc_combiner* lock = static_cast<grpc_combiner*>(gpr_zalloc(sizeof(*lock))); local 79 gpr_ref_init(&lock->refs, 1); 80 lock->scheduler.vtable = &scheduler; 81 lock->finally_scheduler.vtable = &finally_scheduler; 82 gpr_atm_no_barrier_store(&lock->state, STATE_UNORPHANED); 83 gpr_mpscq_init(&lock->queue); 84 grpc_closure_list_init(&lock->final_list); 85 GRPC_CLOSURE_INIT(&lock->offload, offload, lock 161 grpc_combiner* lock = COMBINER_FROM_CLOSURE_SCHEDULER(cl, scheduler); local 200 grpc_combiner* lock = static_cast<grpc_combiner*>(arg); local 213 grpc_combiner* lock = local 328 grpc_combiner* lock = local 348 grpc_combiner* lock = COMBINER_FROM_CLOSURE_SCHEDULER(closure, scheduler); local 358 lock); local [all...] |