Searched defs:lock (Results 51 - 75 of 141) sorted by relevance

123456

/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.11.0/
H A Dsarea.h84 drmLock lock; member in struct:_XF86DRISAREA
85 /** \todo Use readers/writer lock for drawable_lock */
93 drmLock lock; member in struct:_XF86DRILSAREA
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.12.0/
H A Dsarea.h84 drmLock lock; member in struct:_XF86DRISAREA
85 /** \todo Use readers/writer lock for drawable_lock */
93 drmLock lock; member in struct:_XF86DRILSAREA
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.13.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.14.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.15.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/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/cplus/tests/
H A Dswitch.cpp77 Home::Home(Home *link, RCLock* lock): RCCondition(lock) argument
79 ml = lock;
94 Shared::Shared(RCThread::Scope scope, Home* link, RCLock* lock): argument
95 Home(link, lock), RCThread(scope, RCThread::joinable) { }
188 RCLock lock; local
190 Home home(NULL, &lock);
197 shared = new Shared(thread_scope, link, &lock);
208 RCEnter entry(&lock);
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/misc/
H A Dprcountr.c55 ** For manipulating the counter database, single lock is used to
65 ** ToDo (lth): decide on how to lock or atomically update
66 ** individual counters. Candidates are: the global lock; a lock
98 PRLock *lock; member in struct:RName
218 rnp->lock = PR_NewLock();
219 if ( rnp->lock == NULL )
260 PR_Free( rnp->lock );
353 PR_Lock(((RName *)handle)->lock);
355 PR_Unlock(((RName *)handle)->lock);
[all...]
H A Dpralarm.c68 PRLock *lock; /* lock used to protect data */ member in struct:PRAlarm
142 PR_Lock(alarm->lock);
165 PR_Unlock(alarm->lock);
191 if ((alarm->lock = PR_NewLock()) == NULL) goto done;
192 if ((alarm->cond = PR_NewCondVar(alarm->lock)) == NULL) goto done;
205 if (alarm->lock != NULL) PR_DestroyLock(alarm->lock);
214 PR_Lock(alarm->lock);
217 PR_Unlock(alarm->lock);
[all...]
/vbox/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/
H A Dsurface_gdi.c128 * pRect: Rectangle to lock
392 WINED3DLOCKED_RECT lock; local
417 memset(&lock, 0, sizeof(lock)); /* To be sure */
423 &lock,
/vbox/src/VBox/Additions/x11/x11include/mesa-7.2/include/GL/internal/
H A Ddri_sarea.h58 drm_hw_lock_t lock; member in struct:__DRILock
60 /* We use this with DRM_CAS to allocate lock IDs for the real lock.*/
/vbox/src/libs/xpcom18a4/ipc/ipcd/client/src/
H A DipcConnectionUnix.cpp130 PRLock *lock; member in struct:ipcConnectionState
145 if (s->lock)
146 PR_DestroyLock(s->lock);
168 s->lock = PR_NewLock();
175 if (!s->lock || !s->fds[1].fd)
272 PR_Lock(s->lock);
308 PR_Unlock(s->lock);
348 PR_Lock(s->lock);
356 PR_Unlock(s->lock);
378 PR_Lock(s->lock);
[all...]
/vbox/src/libs/xpcom18a4/ipc/ipcd/daemon/src/
H A DipcdUnix.cpp112 const char lockName[] = "lock";
117 + sizeof(lockName); // "lock"
159 // open lock file. it remains open until we shutdown.
172 // Security checks for the lock file
200 // this API is nice because the lock will be automatically released
204 struct flock lock; local
205 lock.l_type = F_WRLCK;
206 lock.l_start = 0;
207 lock.l_len = 0;
208 lock
[all...]
/vbox/src/libs/xpcom18a4/java/src/
H A DnsJavaInterfaces.cpp414 nsISupports* lock; local
417 lock = 0;
419 rv = XRE_LockProfileDirectory(profileDir, &lock);
428 return env->NewObject(clazz, mid, reinterpret_cast<jlong>(lock));
469 jint lock = ds->Lock(ds); local
470 if (!(lock & JAWT_LOCK_ERROR)) {
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/private/
H A Dpprthred.h331 ** Test and then lock the lock if it's not already locked by some other
332 ** thread. Return PR_FALSE if some other thread owned the lock at the
335 NSPR_API(PRBool) PR_TestAndLock(PRLock *lock); variable
/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/libs/xpcom18a4/nsprpub/pr/tests/
H A Dcvar2.c82 PRLock *lock; member in struct:threadinfo
107 PR_Lock(info->lock);
114 PR_Unlock(info->lock);
134 PR_Lock(info->lock);
144 PR_Unlock(info->lock);
161 PRLock *lock,
174 info->lock = lock;
236 PR_Lock(list[index].lock);
239 PR_Unlock(list[index].lock);
159 CreateTestThread(threadinfo *info, PRInt32 id, PRLock *lock, PRCondVar *cvar, PRInt32 loops, PRIntervalTime timeout, PRInt32 *tcount, PRLock *exitlock, PRCondVar *exitcvar, PRInt32 *exitcount, PRBool shared, PRThreadScope scope) argument
[all...]
H A Dforeign.c269 PRLock *lock; local
280 lock = PR_NewLock();
283 PR_DestroyLock(lock);
H A Dperf.c57 PRLock *lock; variable
114 PR_Lock(lock);
115 PR_Unlock(lock);
435 lock = PR_NewLock();
443 Measure(IdleLock, "idle lock lock/unlock pair");
466 Measure(IdleLock, "idle lock lock/unlock pair");
479 PR_DestroyLock(lock);
/vbox/src/libs/xpcom18a4/xpcom/base/
H A DnsExceptionService.cpp47 #define CHECK_SERVICE_USE_OK() if (!lock) return NS_ERROR_NOT_INITIALIZED
48 #define CHECK_MANAGER_USE_OK() if (!mService || !nsExceptionService::lock) return NS_ERROR_NOT_INITIALIZED
167 PRLock *nsExceptionService::lock = PR_FALSE; member in class:nsExceptionService
190 lock = PR_NewLock();
191 NS_WARN_IF_FALSE(lock, "Error allocating ExceptionService lock");
212 if (!lock) {
228 if (lock) {
230 PR_DestroyLock(lock);
231 lock
[all...]
H A DnsStackFrameUnix.cpp231 static mutex_t lock; local
238 mutex_lock(&lock);
246 mutex_unlock(&lock);
254 mutex_unlock(&lock);
310 static int index; /* protected by lock in caller */
/vbox/src/libs/xpcom18a4/xpcom/threads/
H A DnsAutoLock.h40 A stack-based lock object that makes using PRLock a bit more
60 // we're don't hold the lock yet...
62 nsAutoLock lock(mLock);
66 // worrying about forgetting to release the lock
74 // we're not in the lock here...
77 nsAutoLock lock(mLock);
81 // ...now we're not in the lock anymore
169 * The constructor aquires the given lock. The destructor
170 * releases the lock.
182 // to re-enter the lock
196 void lock() { function in class:nsAutoLock
[all...]
/vbox/src/VBox/Debugger/
H A DVBoxDbgConsole.cpp518 lock();
564 lock();
579 VBoxDbgConsole::lock() function in class:VBoxDbgConsole
608 pThis->lock();
614 * Wait outside the lock for the requested time, then check again.
618 pThis->lock();
647 pThis->lock();
687 pThis->lock();
779 lock();
/vbox/src/libs/libxml2-2.6.31/
H A Dthreads.c100 pthread_mutex_t lock; member in struct:_xmlMutex
116 pthread_mutex_t lock; member in struct:_xmlRMutex
125 xmlMutexPtr lock;
134 * - xmlLibraryLock a global lock
188 pthread_mutex_init(&tok->lock, NULL);
215 pthread_mutex_destroy(&tok->lock);
228 * xmlMutexLock() is used to lock a libxml2 token.
237 pthread_mutex_lock(&tok->lock);
265 pthread_mutex_unlock(&tok->lock);
280 * synchronizing access to data. token_r is a re-entrant lock an
[all...]

Completed in 99 milliseconds

123456