/vbox/src/libs/xpcom18a4/nsprpub/pr/src/bthreads/ |
H A D | btcvar.c | 80 PR_DestroyCondVar (PRCondVar *cvar) argument 82 status_t result = delete_sem( cvar->sem ); 85 result = delete_sem( cvar->handshakeSem ); 88 result = delete_sem( cvar->signalSem ); 91 PR_DELETE( cvar ); 123 PR_WaitCondVar (PRCondVar *cvar, PRIntervalTime timeout) 128 PR_Unlock( cvar->lock ); 129 PR_Lock( cvar->lock ); 133 if( atomic_add( &cvar->signalBenCount, 1 ) > 0 ) 135 if (acquire_sem(cvar [all...] |
H A D | btmon.c | 53 PRCondVar *cvar; local 66 cvar = PR_NewCondVar( lock ); 67 if( !cvar ) 74 mon->cvar = cvar; 100 PR_DestroyLock( mon->cvar->lock ); 101 PR_DestroyCondVar( mon->cvar ); 113 if( mon->cvar->lock->owner == find_thread( NULL ) ) 119 PR_Lock( mon->cvar->lock ); 132 if( mon->cvar [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/threads/combined/ |
H A D | prucv.c | 67 if (thread->wait.cvar != NULL) { 68 thread->wait.cvar = NULL; 104 if (thread->wait.cvar) { 105 thread->wait.cvar = NULL; 128 * Notify thread waiting on cvar; called when thread is interrupted 134 PRCondVar *cvar; local 140 cvar = thread->wait.cvar; 141 thread->wait.cvar = NULL; 144 _PR_CVAR_LOCK(cvar); 186 _PR_WaitCondVar( PRThread *thread, PRCondVar *cvar, PRLock *lock, PRIntervalTime timeout) argument 286 _PR_NotifyCondVar(PRCondVar *cvar, PRThread *me) argument 322 _PR_CondVarToString(PRCondVar *cvar, char *buf, PRUint32 buflen) argument 483 PRCondVar *cvar; local 516 PR_DestroyCondVar(PRCondVar *cvar) argument 616 PRCondVar *cvar = PR_NEWZAP(PRCondVar); local 633 PRP_DestroyNakedCondVar(PRCondVar *cvar) argument [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/threads/ |
H A D | prsem.c | 53 PRCondVar *cvar; local 67 cvar = PR_NewCondVar(lock); 68 if (!cvar) { 73 sem->cvar = cvar; 92 PR_DestroyLock(sem->cvar->lock); 93 PR_DestroyCondVar(sem->cvar); 119 PR_Lock(sem->cvar->lock); 122 status = PR_WaitCondVar(sem->cvar, PR_INTERVAL_NO_TIMEOUT); 129 PR_Unlock(sem->cvar [all...] |
H A D | prmon.c | 48 PRCondVar *cvar; local 59 cvar = PR_NewCondVar(lock); 60 if (!cvar) { 65 mon->cvar = cvar; 86 PR_DestroyLock(mon->cvar->lock); 87 PR_DestroyCondVar(mon->cvar); 96 if (mon->cvar->lock->owner == _PR_MD_CURRENT_THREAD()) { 99 PR_Lock(mon->cvar->lock); 111 if (mon->cvar [all...] |
H A D | prdump.c | 83 thread->wait.cvar, thread->sleep);
|
H A D | prcthr.c | 139 ** but the lock and cvar used are local to the implementation 190 victim = thread->wait.cvar;
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/ |
H A D | prcvar.h | 75 NSPR_API(void) PR_DestroyCondVar(PRCondVar *cvar); variable 105 NSPR_API(PRStatus) PR_WaitCondVar(PRCondVar *cvar, PRIntervalTime timeout); 108 ** Notify ONE thread that is currently waiting on 'cvar'. Which thread is 120 NSPR_API(PRStatus) PR_NotifyCondVar(PRCondVar *cvar); variable 130 NSPR_API(PRStatus) PR_NotifyAllCondVar(PRCondVar *cvar); variable
|
H A D | prpdce.h | 91 NSPR_API(void) PRP_DestroyNakedCondVar(PRCondVar *cvar); variable 96 ** Wait on the condition variable 'cvar'. It is asserted that 102 ** NB: The CV ('cvar') must be one created using PR_NewNakedCondVar. 105 PRCondVar *cvar, PRLock *lock, PRIntervalTime timeout); 110 ** Notify the condition specified 'cvar'. 112 ** NB: The CV ('cvar') must be one created using PR_NewNakedCondVar. 114 NSPR_API(PRStatus) PRP_NakedNotify(PRCondVar *cvar); variable 119 ** Notify the condition specified 'cvar'. 121 ** NB: The CV ('cvar') must be one created using PR_NewNakedCondVar. 123 NSPR_API(PRStatus) PRP_NakedBroadcast(PRCondVar *cvar); variable [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ |
H A D | ptsynch.c | 284 static void pt_PostNotifyToCvar(PRCondVar *cvar, PRBool broadcast) argument 287 _PT_Notified *notified = &cvar->lock->notified; 289 PR_ASSERT(PR_TRUE == cvar->lock->locked); 290 PR_ASSERT(pthread_equal(cvar->lock->owner, pthread_self())); 291 PR_ASSERT(_PT_PTHREAD_MUTEX_IS_LOCKED(cvar->lock->mutex)); 297 if (notified->cv[index].cv == cvar) 316 (void)PR_AtomicIncrement(&cvar->notify_pending); 318 notified->cv[index].cv = cvar; 322 PR_ASSERT(PR_TRUE == cvar->lock->locked); 323 PR_ASSERT(pthread_equal(cvar 343 PR_DestroyCondVar(PRCondVar *cvar) argument 440 PRCondVar *cvar; local 1077 PRP_DestroyNakedCondVar(PRCondVar *cvar) argument [all...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/ |
H A D | intrio.c | 57 static PRCondVar *cvar; variable 94 PR_NotifyCondVar(cvar); 130 PR_WaitCondVar(cvar, PR_INTERVAL_NO_TIMEOUT); 157 cvar = PR_NewCondVar(lock); 158 if (cvar == NULL) {
|
H A D | cvar2.c | 83 PRCondVar *cvar; member in struct:threadinfo 109 PR_WaitCondVar(info->cvar, info->timeout); 136 DPRINTF(("PrivateCondVarThread: thread 0x%lx waiting on cvar = 0x%lx\n", 137 PR_GetCurrentThread(), info->cvar)); 138 PR_WaitCondVar(info->cvar, info->timeout); 162 PRCondVar *cvar, 175 info->cvar = cvar; 238 PR_NotifyCondVar(list[index].cvar); 240 DPRINTF(("PrivateCondVarThread: thread 0x%lx notified cvar 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...] |
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/ |
H A D | w95cv.c | 200 static void md_PostNotifyToCvar(_MDCVar *cvar, _MDLock *lock, argument 208 if (notified->cv[index].cv == cvar) { 230 notified->cv[index].cv = cvar;
|
H A D | w95io.c | 147 if (thread->wait.cvar != NULL) { 148 thread->wait.cvar = NULL;
|
H A D | ntio.c | 489 * thread waiting for a cvar or a joining thread 499 if (thread->wait.cvar != NULL) { 501 thread->wait.cvar = NULL; 558 if (thread->wait.cvar != NULL) { 560 thread->wait.cvar = NULL;
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/os2/ |
H A D | os2cv.c | 239 static void md_PostNotifyToCvar(_MDCVar *cvar, _MDLock *lock, argument 247 if (notified->cv[index].cv == cvar) { 269 notified->cv[index].cv = cvar;
|
H A D | os2io.c | 99 if (thread->wait.cvar != NULL) { 100 thread->wait.cvar = NULL;
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/ |
H A D | pthreads_user.c | 295 if (thread->wait.cvar) { 298 * of the cvar in _PR_WaitCondVar 300 thread->wait.cvar = NULL;
|
H A D | irix.c | 613 if (thread->wait.cvar) { 616 * of the cvar in _PR_WaitCondVar 618 thread->wait.cvar = NULL; 1289 handle = thr->wait.cvar; 1349 handle = thr->wait.cvar;
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/private/ |
H A D | primpl.h | 593 PRThread *thread, PRCondVar *cvar, PRLock *lock, PRIntervalTime timeout); 594 extern PRUint32 _PR_CondVarToString(PRCondVar *cvar, char *buf, PRUint32 buflen); 830 * awaken a thread which is waiting on a lock or cvar. 1490 PRCondVar *cvar; /* condition variable queue */ member in struct:PRMonitor 1492 PRCondVar *cvar; /* associated lock and condition variable queue */ member in struct:PRMonitor 1504 PRCondVar *cvar; /* associated lock and condition variable queue */ 1637 struct PRCondVar *cvar; member in struct:PRThread::_wait 1786 extern void _PR_NotifyCondVar(PRCondVar *cvar, PRThread *me);
|
/vbox/src/VBox/Main/cbinding/ |
H A D | VBoxCAPI_v3_0.h | 428 NSPR_API(void) PR_DestroyCondVar(PRCondVar *cvar); variable 429 NSPR_API(PRStatus) PR_WaitCondVar(PRCondVar *cvar, PRIntervalTime timeout); 430 NSPR_API(PRStatus) PR_NotifyCondVar(PRCondVar *cvar); variable 431 NSPR_API(PRStatus) PR_NotifyAllCondVar(PRCondVar *cvar); variable
|
H A D | VBoxCAPI_v3_1.h | 428 NSPR_API(void) PR_DestroyCondVar(PRCondVar *cvar); variable 429 NSPR_API(PRStatus) PR_WaitCondVar(PRCondVar *cvar, PRIntervalTime timeout); 430 NSPR_API(PRStatus) PR_NotifyCondVar(PRCondVar *cvar); variable 431 NSPR_API(PRStatus) PR_NotifyAllCondVar(PRCondVar *cvar); variable
|
H A D | VBoxCAPI_v3_2.h | 428 NSPR_API(void) PR_DestroyCondVar(PRCondVar *cvar); variable 429 NSPR_API(PRStatus) PR_WaitCondVar(PRCondVar *cvar, PRIntervalTime timeout); 430 NSPR_API(PRStatus) PR_NotifyCondVar(PRCondVar *cvar); variable 431 NSPR_API(PRStatus) PR_NotifyAllCondVar(PRCondVar *cvar); variable
|
H A D | VBoxCAPI_v4_0.h | 428 NSPR_API(void) PR_DestroyCondVar(PRCondVar *cvar); variable 429 NSPR_API(PRStatus) PR_WaitCondVar(PRCondVar *cvar, PRIntervalTime timeout); 430 NSPR_API(PRStatus) PR_NotifyCondVar(PRCondVar *cvar); variable 431 NSPR_API(PRStatus) PR_NotifyAllCondVar(PRCondVar *cvar); variable
|
H A D | VBoxCAPI_v4_1.h | 428 NSPR_API(void) PR_DestroyCondVar(PRCondVar *cvar); variable 429 NSPR_API(PRStatus) PR_WaitCondVar(PRCondVar *cvar, PRIntervalTime timeout); 430 NSPR_API(PRStatus) PR_NotifyCondVar(PRCondVar *cvar); variable 431 NSPR_API(PRStatus) PR_NotifyAllCondVar(PRCondVar *cvar); variable
|