Searched refs:lock (Results 1 - 25 of 335) sorted by relevance

1234567891011>>

/vbox/src/libs/xpcom18a4/nsprpub/pr/src/cplus/
H A Drclock.cpp47 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 Drclock.h65 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 Drccv.cpp48 RCCondition::RCCondition(class RCLock *lock): RCBase() argument
50 cv = PR_NewCondVar(lock->lock);
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/bthreads/
H A Dbtlocks.c57 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 Dbtmon.c54 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 Dprolock.h57 ** 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 Dprrwlock.h40 ** 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 Dprlock.h69 * 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 DProfileLock.java41 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 Dlock.h53 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 Dlock.h56 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 Dprulock.c126 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 Dprolock.c65 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 Dacpi_func.h54 /* 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 Dprsem.c54 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 Dprmon.c49 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 DInterlockedDecrement.c39 lock dec dword ptr [eax]
H A DInterlockedIncrement.c39 lock inc dword ptr [eax]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/
H A Dptsynch.c88 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 Dw95cv.c48 * 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 Dos2cv.c48 * 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 Dqemu-lock.h30 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 Dgcint.h52 #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 Dsarea.h83 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 Dsarea.h83 drmLock lock; member in struct:_XF86DRISAREA
84 /** \todo Use readers/writer lock for drawable_lock */
92 drmLock lock; member in struct:_XF86DRILSAREA

Completed in 61 milliseconds

1234567891011>>