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

1234567891011>>

/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/WebKit/Source/wtf/
H A DSpinLock.h43 ALWAYS_INLINE void spinLockLock(int volatile* lock) argument
45 while (atomicIncrement(lock) != 1)
46 atomicDecrement(lock);
49 ALWAYS_INLINE void spinLockUnlock(int volatile* lock) argument
51 atomicDecrement(lock);
/external/qemu/
H A Dqemu-lock.h41 static inline void spin_lock(spinlock_t *lock) argument
45 static inline void spin_unlock(spinlock_t *lock) argument
H A Dqemu-thread.h7 pthread_mutex_t lock; member in struct:QemuMutex
/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/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...]
/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...]
/external/chromium_org/tools/gn/
H A Ditem_tree.h10 #include "base/synchronization/lock.h"
45 // This lock must be held when calling the "Locked" functions below.
46 base::Lock& lock() const { return lock_; } function in class:ItemTree
50 // The lock must be held.
56 // The lock must be held.
73 // The lock should not be held.
/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/kernel-headers/original/asm-arm/
H A Dspinlock_types.h9 volatile unsigned int lock; member in struct:__anon19100
15 volatile unsigned int lock; member in struct:__anon19101
/external/kernel-headers/original/asm-x86/
H A Dmmu.h19 struct mutex lock; member in struct:__anon19245
H A Dspinlock_types.h15 unsigned int lock; member in struct:__anon19259
/external/libvpx/libvpx/vpx_ports/
H A Dvpx_once.h17 static CRITICAL_SECTION *lock; local
20 void *lock_ptr = &lock;
24 * lock.
31 /* Get a lock. We create one and try to make it the one-true-lock,
46 /* At this point, we have a lock that can be synchronized on. We don't
50 EnterCriticalSection(lock);
58 LeaveCriticalSection(lock);
65 DeleteCriticalSection(lock);
66 free(lock);
76 static pthread_once_t lock = PTHREAD_ONCE_INIT; local
[all...]
/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 382 milliseconds

1234567891011>>