Searched refs:thred (Results 1 - 9 of 9) sorted by relevance

/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/
H A Dw95cv.c62 AddThreadToCVWaitQueueInternal(PRThread *thred, struct _MDCVar *cv) argument
67 thred->md.inCVWaitQueue = PR_TRUE;
68 thred->md.next = NULL;
69 thred->md.prev = cv->waitTail;
71 cv->waitHead = thred;
73 cv->waitTail->md.next = thred;
75 cv->waitTail = thred;
120 PRThread *thred; local
132 thred = cv->waitHead;
133 while (thred !
174 PRThread *thred; local
264 PRThread *thred = _PR_MD_CURRENT_THREAD(); local
[all...]
H A Dw16sock.c909 PRThread *thred; local
937 thred = pq->thr;
938 _PR_THREAD_LOCK(thred);
940 _PRCPU *cpu = thred->cpu;
953 _PR_MD_WAKEUP_WAITER(thred);
955 _PR_THREAD_UNLOCK(thred);
H A Dntio.c323 PRThread *thred = NULL; local
346 thred = _PR_THREAD_CONDQ_PTR(PR_LIST_HEAD(&group->wait_list));
347 PR_REMOVE_LINK(&thred->waitQLinks);
351 if (thred) {
352 if (!_PR_IS_NATIVE_THREAD(thred)) {
353 int pri = thred->priority;
355 _PR_THREAD_LOCK(thred);
356 if (thred->flags & _PR_ON_PAUSEQ) {
357 _PR_SLEEPQ_LOCK(thred->cpu);
358 _PR_DEL_SLEEPQ(thred, PR_TRU
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/
H A Dptthread.c170 PRThread *thred = (PRThread*)arg; local
171 PRBool detached = (thred->state & PT_THREAD_DETACHED) ? PR_TRUE : PR_FALSE;
174 * Both the parent thread and this new thread set thred->id.
175 * The new thread must ensure that thred->id is set before
177 * that thred->id is set before PR_CreateThread() returns.
178 * Both threads set thred->id without holding a lock. Since
182 thred->id = pthread_self();
193 pthread_t self = thred->id;
200 _PR_InitializeStack(thred->stack);
207 rv = pthread_setspecific(pt_book.key, thred);
271 PRThread *thred = (PRThread *)pvUser; local
279 PRThread *thred = NULL; local
323 PRThread *thred; local
600 GetExecutionEnvironment(PRThread *thred) argument
605 SetExecutionEnvironment(PRThread *thred, void *env) argument
697 void *thred; local
731 PR_SetThreadPriority(PRThread *thred, PRThreadPriority newPri) argument
870 PRThread *thred = (PRThread*)arg; local
903 PRThread *thred; local
1181 PRThread* thred = pt_book.first; local
1327 pt_SuspendSet(PRThread *thred) argument
1352 pt_SuspendTest(PRThread *thred) argument
1384 pt_ResumeSet(PRThread *thred) argument
1409 pt_ResumeTest(PRThread *thred) argument
1446 PRThread* thred = pt_book.first; local
1492 PRThread* thred = pt_book.first; local
1529 PR_GetSP(PRThread *thred) argument
1586 PR_GetSP(PRThread *thred) argument
[all...]
H A Dptsynch.c359 PRThread *thred = PR_CurrentThread(); local
368 if (_PT_THREAD_INTERRUPTED(thred)) goto aborted;
373 thred->waiting = cvar; /* this is where we're waiting */
402 thred->waiting = NULL; /* and now we're not */
403 if (_PT_THREAD_INTERRUPTED(thred)) goto aborted;
413 thred->state &= ~PT_THREAD_ABORTED;
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/os2/
H A Dos2cv.c98 AddThreadToCVWaitQueueInternal(PRThread *thred, struct _MDCVar *cv) argument
103 thred->md.inCVWaitQueue = PR_TRUE;
104 thred->md.next = NULL;
105 thred->md.prev = cv->waitTail;
107 cv->waitHead = thred;
109 cv->waitTail->md.next = thred;
111 cv->waitTail = thred;
156 PRThread *thred; local
168 thred = cv->waitHead;
169 while (thred !
214 PRThread *thred; local
304 PRThread *thred = _PR_MD_CURRENT_THREAD(); local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/bthreads/
H A Dbtthread.c60 PRInt32 threadCount; /* user thred count */
272 PRThread *thred = (PRThread*)arg; local
279 tls_set(tls_prThreadSlot, thred);
281 thred->startFunc(thred->arg); /* run the dang thing */
296 PRThread* thred; local
300 thred = PR_NEWZAP(PRThread);
301 if (thred == NULL)
307 thred->md.joinSem = B_ERROR;
309 thred
420 PRThread* thred; local
466 PR_SetThreadPriority(PRThread *thred, PRThreadPriority newPri) argument
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/
H A Dsema.c90 PRThread *thred; local
132 thred = PR_CreateThread(PR_USER_THREAD, ThreadFunc, NULL,
134 if (NULL == thred) {
161 if (PR_JoinThread(thred) == PR_FAILURE) {
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/
H A Dunix.c1759 PRThread *thred; local
1764 thred = pq->thr;
1765 _PR_THREAD_LOCK(thred);
1790 _PR_MD_WAKEUP_WAITER(thred);
1793 _PR_THREAD_UNLOCK(thred);
1839 PRThread *thred; local
1873 thred = pq->thr;
1874 _PR_THREAD_LOCK(thred);
1876 _PRCPU *cpu = thred->cpu;
1900 _PR_MD_WAKEUP_WAITER(thred);
[all...]

Completed in 251 milliseconds