/vbox/src/libs/xpcom18a4/nsprpub/pr/include/ |
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...] |
H A D | prcvar.h | 59 ** "lock" is the lock used to protect the condition variable. 67 NSPR_API(PRCondVar*) PR_NewCondVar(PRLock *lock); variable 80 ** caller specified amount of time expires. The lock associated with 86 ** the lock that it held when wait was called. 92 ** is to release the lock, possibly causing a rescheduling within the 93 ** runtime, then immediately attempting to reacquire the lock and resume. 98 ** being protected by the lock and tested explicitly for an expired 101 ** Returns PR_FAILURE if the caller has not locked the lock associated 113 ** The calling thead must hold the lock tha [all...] |
H A D | prpdce.h | 67 ** Test and acquire a lock. 69 ** If the lock is acquired by the calling thread, the 70 ** return value will be PR_SUCCESS. If the lock is 74 NSPR_API(PRStatus) PRP_TryLock(PRLock *lock); variable 80 ** to a lock. The CV created with this function is the only type 97 ** the lock protecting the condition 'lock' is held by the 105 PRCondVar *cvar, PRLock *lock, PRIntervalTime timeout);
|
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 | 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...] |
/vbox/src/libs/xpcom18a4/xpcom/base/ |
H A D | nsExceptionService.h | 79 /* single lock protects both providers hashtable 81 static PRLock* lock; member in class:nsExceptionService
|
/vbox/src/VBox/Additions/x11/x11include/libdrm-2.4.13/ |
H A D | nouveau_drmif.h | 36 drmLock *lock; member in struct:nouveau_device_priv
|
/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/libs/xpcom18a4/nsprpub/pr/src/bthreads/ |
H A D | btcvar.c | 45 ** "lock" is the lock used to protect the condition variable. 54 PR_NewCondVar (PRLock *lock) argument 57 PR_ASSERT( NULL != lock ); 60 cv->lock = lock; 97 ** caller specified amount of time expires. The lock associated with 103 ** the lock that it held when wait was called. 109 ** is to release the lock, possibly causing a rescheduling within the 110 ** runtime, then immediately attempting to reacquire the lock an [all...] |
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/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/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/include/iprt/cpp/ |
H A D | lock.h | 44 * The mutex lock. 46 * This is used as an object data member if the intention is to lock 90 /* lock() and unlock() are private so that only friend RTCLock can access 93 inline void lock() function in class:RTCLockMtx 117 RTCLock lock(gMtx); 119 // when lock goes out of scope, destructor releases the mutex 124 * This might be helpful if the lock doesn't go out of scope early enough 130 /** Reference to the lock we're holding. */ 132 /** Whether we're currently holding the lock of if it was already 140 m_rMtx.lock(); [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/cplus/ |
H A D | rccv.cpp | 48 RCCondition::RCCondition(class RCLock *lock): RCBase() argument 50 cv = PR_NewCondVar(lock->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; }
|
/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/VBox/Additions/x11/x11include/xorg-server-1.5.3/ |
H A D | glthread.h | 41 * _glthread_Mutex Mutual exclusion lock 240 int32 lock; member in struct:__anon8144 246 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 247 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 249 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 250 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.6.5/ |
H A D | glthread.h | 41 * _glthread_Mutex Mutual exclusion lock 240 int32 lock; member in struct:__anon8462 246 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 247 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 249 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 250 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.7.7/ |
H A D | glthread.h | 41 * _glthread_Mutex Mutual exclusion lock 240 int32 lock; member in struct:__anon8780 246 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 247 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 249 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 250 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.8.0/ |
H A D | glthread.h | 41 * _glthread_Mutex Mutual exclusion lock 240 int32 lock; member in struct:__anon9094 246 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 247 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 249 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 250 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.9.0/ |
H A D | glthread.h | 41 * _glthread_Mutex Mutual exclusion lock 240 int32 lock; member in struct:__anon9413 246 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 247 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 249 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 250 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.10.0/ |
H A D | glthread.h | 41 * _glthread_Mutex Mutual exclusion lock 240 int32 lock; member in struct:__anon4943 246 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 247 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 249 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 250 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.11.0/ |
H A D | glthread.h | 41 * _glthread_Mutex Mutual exclusion lock 173 int32 lock; member in struct:__anon5256 179 #define _glthread_INIT_MUTEX(name) name.sem = create_sem(0, #name"_benaphore"), name.lock = 0 180 #define _glthread_DESTROY_MUTEX(name) delete_sem(name.sem), name.lock = 0 182 if (atomic_add(&(name.lock), 1) >= 1) acquire_sem(name.sem) 183 #define _glthread_UNLOCK_MUTEX(name) if (atomic_add(&(name.lock), -1) > 1) release_sem(name.sem)
|