/vbox/src/libs/xpcom18a4/nsprpub/pr/src/cplus/ |
H A D | rclock.cpp | 47 lock = PR_NewLock(); /* it might be NULL */ 48 PR_ASSERT(NULL != lock); 53 if (NULL != lock) PR_DestroyLock(lock); 54 lock = NULL; 59 PR_ASSERT(NULL != lock); 60 PR_Lock(lock); 66 PR_ASSERT(NULL != lock); 67 rv = PR_Unlock(lock);
|
H A D | rclock.h | 65 PRLock *lock; local 78 ~RCEnter(); /* releases the lock */ 79 RCEnter(RCLock*); /* acquires the lock */ 82 RCLock *lock; local 93 inline RCEnter::RCEnter(RCLock* ml) { lock = ml; lock->Acquire(); } 94 inline RCEnter::~RCEnter() { lock->Release(); lock = NULL; }
|
H A D | rccv.cpp | 48 RCCondition::RCCondition(class RCLock *lock): RCBase() argument 50 cv = PR_NewCondVar(lock->lock);
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/bthreads/ |
H A D | btlocks.c | 57 PRLock *lock; local 62 lock = PR_NEWZAP(PRLock); 63 if (lock != NULL) { 65 lock->benaphoreCount = 0; 66 lock->semaphoreID = create_sem( 0, "nsprLockSem" ); 67 if( lock->semaphoreID < B_NO_ERROR ) { 69 PR_DELETE( lock ); 70 lock = NULL; 74 return lock; 78 PR_DestroyLock (PRLock* lock) argument 89 PR_Lock(PRLock* lock) argument [all...] |
H A D | btmon.c | 54 PRLock *lock; local 59 lock = PR_NewLock(); 60 if( !lock ) 66 cvar = PR_NewCondVar( lock ); 69 PR_DestroyLock( lock ); 94 ** monitor's condition variable and that the lock is not held. 100 PR_DestroyLock( mon->cvar->lock ); 106 ** Enter the lock associated with the monitor. If the calling thread currently 113 if( mon->cvar->lock->owner == find_thread( NULL ) ) 119 PR_Lock( mon->cvar->lock ); [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/ |
H A D | prolock.h | 57 ** diagnostic message when a lock inversion condition is 60 ** The lock ordering detection is complile-time enabled only. in 62 ** directly to PRLock functions, providing no lock order 75 ** lock hierarchy. 86 ** Opaque type for ordered lock. 107 ** DESCRIPTION: PR_CreateOrderedLock() creates an ordered lock. 110 ** order: user defined order of this lock. 111 ** name: name of the lock. For debugging purposes. 136 ** DESCRIPTION: PR_DestroyOrderedLock() destroys the ordered lock 137 ** referenced by lock 156 PROrderedLock *lock variable 184 PROrderedLock *lock variable 212 PROrderedLock *lock variable [all...] |
H A D | prrwlock.h | 40 ** Description: API to basic reader-writer lock functions of NSPR. 62 * The reader writer lock, PRRWLock, is an opaque object to the clients 75 ** Returns a pointer to a newly created reader-writer lock object. 80 ** If the lock cannot be created because of resource constraints, NULL 89 ** Destroys a given RW lock object. 90 ** INPUTS: PRRWLock *lock - Lock to be freed. 94 NSPR_API(void) PR_DestroyRWLock(PRRWLock *lock); variable 99 ** Apply a read lock (non-exclusive) on a RWLock 100 ** INPUTS: PRRWLock *lock - Lock to be read-locked. 104 NSPR_API(void) PR_RWLock_Rlock(PRRWLock *lock); variable 114 NSPR_API(void) PR_RWLock_Wlock(PRRWLock *lock); variable 124 NSPR_API(void) PR_RWLock_Unlock(PRRWLock *lock); variable [all...] |
H A D | prlock.h | 69 * NSPR represents the lock as an opaque entity to the client of the 82 ** Returns a pointer to a newly created opaque lock object. 86 ** If the lock can not be created because of resource constraints, NULL 95 ** Destroys a given opaque lock object. 96 ** INPUTS: PRLock *lock 101 NSPR_API(void) PR_DestroyLock(PRLock *lock); variable 106 ** Lock a lock. 107 ** INPUTS: PRLock *lock 112 NSPR_API(void) PR_Lock(PRLock *lock); variable 117 ** Unlock a lock 124 NSPR_API(PRStatus) PR_Unlock(PRLock *lock); variable [all...] |
/vbox/src/libs/xpcom18a4/java/src/org/mozilla/xpcom/ |
H A D | ProfileLock.java | 41 private long lock = 0; field in class:ProfileLock 44 lock = aLockObject; 48 releaseNative(lock); 49 lock = 0; 55 return lock != 0;
|
/vbox/src/VBox/Additions/haiku/SharedFolders/ |
H A D | lock.h | 53 mutex lock; member in struct:recursive_lock 90 { ASSERT(find_thread(NULL) == (r)->lock.holder); } 121 # define RECURSIVE_LOCK_HOLDER(recursiveLock) ((recursiveLock)->lock.holder) 131 extern void recursive_lock_init(recursive_lock *lock, const char *name); 133 extern void recursive_lock_init_etc(recursive_lock *lock, const char *name, 135 extern void recursive_lock_destroy(recursive_lock *lock); 136 extern status_t recursive_lock_lock(recursive_lock *lock); 137 extern status_t recursive_lock_trylock(recursive_lock *lock); 138 extern void recursive_lock_unlock(recursive_lock *lock); 139 extern int32 recursive_lock_get_recursion(recursive_lock *lock); 177 rw_lock_read_lock(rw_lock* lock) argument 191 rw_lock_read_lock_with_timeout(rw_lock* lock, uint32 timeoutFlags, bigtime_t timeout) argument 206 rw_lock_read_unlock(rw_lock* lock) argument 219 rw_lock_write_unlock(rw_lock* lock) argument 226 mutex_lock(mutex* lock) argument 239 mutex_lock_threads_locked(mutex* lock) argument 252 mutex_trylock(mutex* lock) argument 265 mutex_lock_with_timeout(mutex* lock, uint32 timeoutFlags, bigtime_t timeout) argument 278 mutex_unlock(mutex* lock) argument 288 mutex_transfer_lock(mutex* lock, thread_id thread) argument [all...] |
/vbox/src/VBox/Additions/haiku/include/ |
H A D | lock.h | 56 mutex lock; member in struct:recursive_lock 93 { ASSERT(find_thread(NULL) == (r)->lock.holder); } 124 # define RECURSIVE_LOCK_HOLDER(recursiveLock) ((recursiveLock)->lock.holder) 134 extern void recursive_lock_init(recursive_lock *lock, const char *name); 136 extern void recursive_lock_init_etc(recursive_lock *lock, const char *name, 138 extern void recursive_lock_destroy(recursive_lock *lock); 139 extern status_t recursive_lock_lock(recursive_lock *lock); 140 extern status_t recursive_lock_trylock(recursive_lock *lock); 141 extern void recursive_lock_unlock(recursive_lock *lock); 142 extern int32 recursive_lock_get_recursion(recursive_lock *lock); 180 rw_lock_read_lock(rw_lock* lock) argument 194 rw_lock_read_lock_with_timeout(rw_lock* lock, uint32 timeoutFlags, bigtime_t timeout) argument 209 rw_lock_read_unlock(rw_lock* lock) argument 222 rw_lock_write_unlock(rw_lock* lock) argument 229 mutex_lock(mutex* lock) argument 242 mutex_lock_threads_locked(mutex* lock) argument 255 mutex_trylock(mutex* lock) argument 268 mutex_lock_with_timeout(mutex* lock, uint32 timeoutFlags, bigtime_t timeout) argument 281 mutex_unlock(mutex* lock) argument 291 mutex_transfer_lock(mutex* lock, thread_id thread) argument [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/threads/combined/ |
H A D | prulock.c | 126 void _PR_UnblockLockWaiter(PRLock *lock) argument 132 q = lock->waitQ.next; 133 PR_ASSERT(q != &lock->waitQ); 134 while (q != &lock->waitQ) { 153 PR_ASSERT(t->wait.lock == lock); 154 t->wait.lock = 0; 155 PR_REMOVE_LINK(&t->waitQLinks); /* take it off lock's waitQ */ 193 PRLock *lock; local 197 lock 214 PR_DestroyLock(PRLock *lock) argument 225 PR_Lock(PRLock *lock) argument [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/misc/ |
H A D | prolock.c | 65 PROrderedLock *lock 69 #pragma unused( lock ) 78 PROrderedLock *lock 82 #pragma unused( lock ) 91 PROrderedLock *lock 95 #pragma unused( lock )
|
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/Include/Ipf/machine/ |
H A D | acpi_func.h | 54 /* Section 5.2.9.1: global lock acquire/release functions */ 55 extern int acpi_acquire_global_lock(uint32_t *lock); 56 extern int acpi_release_global_lock(uint32_t *lock); 63 /* Section 5.2.9.1: global lock acquire/release functions */ 71 * Acquire the global lock. If busy, set the pending bit. The caller 72 * will wait for notification from the BIOS that the lock is available 76 acpi_acquire_global_lock(uint32_t *lock) argument 81 old = *lock; 84 } while (atomic_cmpset_acq_int(lock, old, new) == 0); 90 * Release the global lock, returnin 95 acpi_release_global_lock(uint32_t *lock) argument [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/threads/ |
H A D | prsem.c | 54 PRLock *lock; local 61 lock = PR_NewLock(); 62 if (!lock) { 67 cvar = PR_NewCondVar(lock); 69 PR_DestroyLock(lock); 92 PR_DestroyLock(sem->cvar->lock); 119 PR_Lock(sem->cvar->lock); 129 PR_Unlock(sem->cvar->lock); 145 PR_Lock(sem->cvar->lock); 149 PR_Unlock(sem->cvar->lock); [all...] |
H A D | prmon.c | 49 PRLock *lock; local 53 lock = PR_NewLock(); 54 if (!lock) { 59 cvar = PR_NewCondVar(lock); 61 PR_DestroyLock(lock); 86 PR_DestroyLock(mon->cvar->lock); 92 ** Enter the lock associated with the monitor. 96 if (mon->cvar->lock->owner == _PR_MD_CURRENT_THREAD()) { 99 PR_Lock(mon->cvar->lock); 105 ** Test and then enter the lock associate [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseSynchronizationLib/Ia32/ |
H A D | InterlockedDecrement.c | 39 lock dec dword ptr [eax]
|
H A D | InterlockedIncrement.c | 39 lock inc dword ptr [eax]
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ |
H A D | ptsynch.c | 88 static void pt_PostNotifies(PRLock *lock, PRBool unlock) argument 95 * while the lock was held. Get a copy of the list that's in 96 * the lock structure and then zero the original. If it's 99 post = lock->notified; /* a safe copy; we own the lock */ 102 memset(&lock->notified, 0, sizeof(_PT_Notified)); /* reset */ 104 lock->notified.length = 0; /* these are really sufficient */ 105 lock->notified.link = NULL; 108 /* should (may) we release lock before notifying? */ 111 rv = pthread_mutex_unlock(&lock 157 PRLock *lock; local 173 PR_DestroyLock(PRLock *lock) argument 189 PR_Lock(PRLock *lock) argument 326 PR_NewCondVar(PRLock *lock) argument 662 PRLock *lock = PR_NewLock(); local [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/ |
H A D | w95cv.c | 48 * until right after we unlock the lock. This way the awakened threads 49 * have a better chance to reaquire the lock. 58 * The CV's lock must be locked when this function is called. 81 * Unlock the lock, and then do the deferred condition notifies. 83 * the wait queue of waitCV before the lock is unlocked. 86 * the two places where a lock is unlocked. 90 _MDLock *lock, 100 * while the lock was held. Get a copy of the list that's in 101 * the lock structure and then zero the original. If it's 104 post = lock 89 md_UnlockAndPostNotifies( _MDLock *lock, PRThread *waitThred, _MDCVar *waitCV) argument 200 md_PostNotifyToCvar(_MDCVar *cvar, _MDLock *lock, PRBool broadcast) argument 262 _PR_MD_WAIT_CV(_MDCVar *cv, _MDLock *lock, PRIntervalTime timeout ) argument 327 _PR_MD_NOTIFY_CV(_MDCVar *cv, _MDLock *lock) argument 333 _PR_MD_NOTIFYALL_CV(_MDCVar *cv, _MDLock *lock) argument 339 _PR_MD_UNLOCK(_MDLock *lock) argument [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/os2/ |
H A D | os2cv.c | 48 * until right after we unlock the lock. This way the awakened threads 49 * have a better chance to reaquire the lock. 94 * The CV's lock must be locked when this function is called. 117 * Unlock the lock, and then do the deferred condition notifies. 119 * the wait queue of waitCV before the lock is unlocked. 122 * the two places where a lock is unlocked. 126 _MDLock *lock, 136 * while the lock was held. Get a copy of the list that's in 137 * the lock structure and then zero the original. If it's 140 post = lock 125 md_UnlockAndPostNotifies( _MDLock *lock, PRThread *waitThred, _MDCVar *waitCV) argument 239 md_PostNotifyToCvar(_MDCVar *cvar, _MDLock *lock, PRBool broadcast) argument 302 _PR_MD_WAIT_CV(_MDCVar *cv, _MDLock *lock, PRIntervalTime timeout ) argument 381 _PR_MD_NOTIFY_CV(_MDCVar *cv, _MDLock *lock) argument 388 _PR_MD_NEW_LOCK(_MDLock *lock) argument 428 _PR_MD_NOTIFYALL_CV(_MDCVar *cv, _MDLock *lock) argument [all...] |
/vbox/src/recompiler/ |
H A D | qemu-lock.h | 30 In either case a spinlock is probably the wrong kind of lock. 31 Spinlocks are only good if you know annother CPU has the lock and is 94 __asm__ __volatile__ ("lock; cmpxchgl %2, %0" 105 __asm__ __volatile__ ("lock; cmpxchgl %2, %0" 176 be assured of 16-byte alignment for atomic lock data even if we 178 we use a struct containing an array of four ints for the atomic lock 232 static inline void spin_lock(spinlock_t *lock) argument 234 while (testandset(lock)); 237 static inline void spin_unlock(spinlock_t *lock) argument 239 resetlock(lock); 242 spin_trylock(spinlock_t *lock) argument 247 spin_lock(spinlock_t *lock) argument 251 spin_unlock(spinlock_t *lock) argument 255 spin_trylock(spinlock_t *lock) argument [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/lib/msgc/include/ |
H A D | gcint.h | 52 #define LOCK_GC() EnterCriticalSection(&_pr_gcData.lock->mutexHandle) 53 #define UNLOCK_GC() LeaveCriticalSection(&_pr_gcData.lock->mutexHandle) 55 #define LOCK_GC() PR_EnterMonitor(_pr_gcData.lock) 56 #define UNLOCK_GC() PR_ExitMonitor (_pr_gcData.lock) 57 #define GC_IS_LOCKED() (PR_GetMonitorEntryCount(_pr_gcData.lock)!=0)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.16.0/ |
H A D | sarea.h | 83 drmLock lock; member in struct:_XF86DRISAREA 84 /** \todo Use readers/writer lock for drawable_lock */ 92 drmLock lock; member in struct:_XF86DRILSAREA
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.17.1/ |
H A D | sarea.h | 83 drmLock lock; member in struct:_XF86DRISAREA 84 /** \todo Use readers/writer lock for drawable_lock */ 92 drmLock lock; member in struct:_XF86DRILSAREA
|