Searched defs:lock (Results 1 - 25 of 356) sorted by relevance

1234567891011>>

/external/jemalloc/test/include/test/
H A Dmtx.h10 CRITICAL_SECTION lock; member in struct:__anon21854
12 OSSpinLock lock;
14 pthread_mutex_t lock;
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/
H A Dpthread_spin_lock.c5 * This translation unit implements spin lock primitives.
42 pthread_spin_lock (pthread_spinlock_t * lock) argument
46 if (NULL == lock || NULL == *lock)
51 if (*lock == PTHREAD_SPINLOCK_INITIALIZER)
55 if ((result = ptw32_spinlock_check_need_init (lock)) != 0)
61 s = *lock;
H A Dpthread_spin_trylock.c5 * This translation unit implements spin lock primitives.
42 pthread_spin_trylock (pthread_spinlock_t * lock) argument
46 if (NULL == lock || NULL == *lock)
51 if (*lock == PTHREAD_SPINLOCK_INITIALIZER)
55 if ((result = ptw32_spinlock_check_need_init (lock)) != 0)
61 s = *lock;
H A Dpthread_spin_unlock.c5 * This translation unit implements spin lock primitives.
42 pthread_spin_unlock (pthread_spinlock_t * lock) argument
46 if (NULL == lock || NULL == *lock)
51 s = *lock;
H A Dptw32_spinlock_check_need_init.c5 * This translation unit implements spin lock primitives.
42 ptw32_spinlock_check_need_init (pthread_spinlock_t * lock) argument
61 if (*lock == PTHREAD_SPINLOCK_INITIALIZER)
63 result = pthread_spin_init (lock, PTHREAD_PROCESS_PRIVATE);
65 else if (*lock == NULL)
H A Dpthread_spin_destroy.c5 * This translation unit implements spin lock primitives.
42 pthread_spin_destroy (pthread_spinlock_t * lock) argument
47 if (lock == NULL || *lock == NULL)
52 if ((s = *lock) != PTHREAD_SPINLOCK_INITIALIZER)
72 *lock = NULL;
88 if (*lock == PTHREAD_SPINLOCK_INITIALIZER)
96 *lock = NULL;
H A Dpthread_spin_init.c5 * This translation unit implements spin lock primitives.
42 pthread_spin_init (pthread_spinlock_t * lock, int pshared) argument
48 if (lock == NULL)
114 *lock = s;
119 *lock = NULL;
/external/chromium_org/third_party/npapi/npspy/extern/nspr/
H A Dprcvar.h48 ** "lock" is the lock used to protect the condition variable.
56 NSPR_API(PRCondVar*) PR_NewCondVar(PRLock *lock); variable
69 ** caller specified amount of time expires. The lock associated with
75 ** the lock that it held when wait was called.
81 ** is to release the lock, possibly causing a rescheduling within the
82 ** runtime, then immediately attempting to reacquire the lock and resume.
87 ** being protected by the lock and tested explicitly for an expired
90 ** Returns PR_FAILURE if the caller has not locked the lock associated
102 ** The calling thead must hold the lock tha
[all...]
H A Dprlock.h59 * NSPR represents the lock as an opaque entity to the client of the
72 ** Returns a pointer to a newly created opaque lock object.
76 ** If the lock can not be created because of resource constraints, NULL
85 ** Destroys a given opaque lock object.
86 ** INPUTS: PRLock *lock
91 NSPR_API(void) PR_DestroyLock(PRLock *lock); variable
96 ** Lock a lock.
97 ** INPUTS: PRLock *lock
102 NSPR_API(void) PR_Lock(PRLock *lock); variable
107 ** Unlock a lock
114 NSPR_API(PRStatus) PR_Unlock(PRLock *lock); variable
[all...]
H A Dprpdce.h55 ** Test and acquire a lock.
57 ** If the lock is acquired by the calling thread, the
58 ** return value will be PR_SUCCESS. If the lock is
62 NSPR_API(PRStatus) PRP_TryLock(PRLock *lock); variable
68 ** to a lock. The CV created with this function is the only type
85 ** the lock protecting the condition 'lock' is held by the
93 PRCondVar *cvar, PRLock *lock, PRIntervalTime timeout);
H A Dprrwlock.h37 ** Description: API to basic reader-writer lock functions of NSPR.
51 * The reader writer lock, PRRWLock, is an opaque object to the clients
64 ** Returns a pointer to a newly created reader-writer lock object.
69 ** If the lock cannot be created because of resource constraints, NULL
78 ** Destroys a given RW lock object.
79 ** INPUTS: PRRWLock *lock - Lock to be freed.
83 NSPR_API(void) PR_DestroyRWLock(PRRWLock *lock); variable
88 ** Apply a read lock (non-exclusive) on a RWLock
89 ** INPUTS: PRRWLock *lock - Lock to be read-locked.
93 NSPR_API(void) PR_RWLock_Rlock(PRRWLock *lock); variable
103 NSPR_API(void) PR_RWLock_Wlock(PRRWLock *lock); variable
113 NSPR_API(void) PR_RWLock_Unlock(PRRWLock *lock); variable
[all...]
H A Dprolock.h47 ** diagnostic message when a lock inversion condition is
50 ** The lock ordering detection is complile-time enabled only. in
52 ** directly to PRLock functions, providing no lock order
65 ** lock hierarchy.
76 ** Opaque type for ordered lock.
97 ** DESCRIPTION: PR_CreateOrderedLock() creates an ordered lock.
100 ** order: user defined order of this lock.
101 ** name: name of the lock. For debugging purposes.
126 ** DESCRIPTION: PR_DestroyOrderedLock() destroys the ordered lock
127 ** referenced by lock
146 PROrderedLock *lock variable
174 PROrderedLock *lock variable
202 PROrderedLock *lock variable
[all...]
/external/chromium_org/third_party/webrtc/system_wrappers/source/
H A Drw_lock.cc27 RWLockWrapper* lock = RWLockWin::Create(); local
28 if (lock) {
29 return lock;
/external/chromium_org/third_party/WebKit/Source/wtf/
H A DSpinLock.h43 ALWAYS_INLINE void spinLockLock(int volatile* lock) argument
45 while (UNLIKELY(atomicTestAndSetToOne(lock))) {
46 while (*lock) { } // Spin without spamming locked instructions.
50 ALWAYS_INLINE void spinLockUnlock(int volatile* lock) argument
52 atomicSetOneToZero(lock);
/external/qemu/include/exec/
H A Dspinlock.h41 static inline void spin_lock(spinlock_t *lock) argument
45 static inline void spin_unlock(spinlock_t *lock) argument
/external/webrtc/src/system_wrappers/source/
H A Drw_lock.cc25 RWLockWrapper* lock = new RWLockWindows(); local
27 RWLockWrapper* lock = new RWLockPosix();
29 if(lock->Init() != 0)
31 delete lock;
35 return lock;
/external/chromium_org/chrome/browser/importer/
H A Dfirefox_profile_lock_posix.cc88 // This function tries to lock Firefox profile using fcntl(). The return
90 // of lock.
91 // if return == false: Another process has lock to the profile.
92 // if return == true && HasAcquired() == true: successfully acquired the lock.
93 // if return == false && HasAcquired() == false: Failed to acquire lock due
94 // to some error (so that we can try alternate method of profile lock).
101 struct flock lock; local
102 lock.l_start = 0;
103 lock.l_len = 0;
104 lock
[all...]
H A Dfirefox_profile_lock_unittest.cc32 // Tests basic functionality and verifies that the lock file is deleted after
39 scoped_ptr<FirefoxProfileLock> lock; local
40 EXPECT_EQ(static_cast<FirefoxProfileLock*>(NULL), lock.get());
42 lock.reset(new FirefoxProfileLock(test_path));
43 EXPECT_TRUE(lock->HasAcquired());
45 lock->Unlock();
46 EXPECT_FALSE(lock->HasAcquired());
48 // In the posix code, we don't delete the file when releasing the lock.
52 lock->Lock();
53 EXPECT_TRUE(lock
78 scoped_ptr<FirefoxProfileLock> lock; local
[all...]
/external/clang/test/CodeGen/
H A D2003-11-01-C99-CompoundLiteral.c4 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 D2003-11-04-EmptyStruct.c4 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/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.locking/
H A Dunlock.pass.cpp23 void lock() {} function in struct:mutex
/external/libcxx/test/thread/thread.mutex/thread.lock/thread.lock.unique/thread.lock.unique.mod/
H A Dmember_swap.pass.cpp21 void lock() {} function in struct:mutex
H A Dnonmember_swap.pass.cpp22 void lock() {} function in struct:mutex
H A Drelease.pass.cpp23 void lock() {++lock_count;} function in struct:mutex
/external/srec/portable/include/
H A DPFileImpl.h50 * Used to lock underlying file and provide atomic read/write operations.
52 PtrdMonitor* lock; member in struct:PFileImpl_t

Completed in 886 milliseconds

1234567891011>>