Searched refs:thread (Results 1 - 25 of 600) sorted by relevance

1234567891011>>

/vbox/src/libs/xpcom18a4/nsprpub/pr/src/misc/
H A Dprerror.c45 PRThread *thread = PR_GetCurrentThread(); local
46 return thread->errorCode;
51 PRThread *thread = PR_GetCurrentThread(); local
52 return thread->osErrorCode;
57 PRThread *thread = PR_GetCurrentThread(); local
58 thread->errorCode = code;
59 thread->osErrorCode = osErr;
60 thread->errorStringLength = 0;
65 PRThread *thread = PR_GetCurrentThread(); local
69 if (NULL != thread
95 PRThread *thread = PR_GetCurrentThread(); local
101 PRThread *thread = PR_GetCurrentThread(); local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/
H A Dw95thred.c45 __declspec(thread) struct PRThread *_pr_thread_last_run;
46 __declspec(thread) struct PRThread *_pr_currentThread;
47 __declspec(thread) struct _PRCPU *_pr_currentCPU;
82 _PR_MD_INIT_THREAD(PRThread *thread) argument
84 if (thread->flags & (_PR_PRIMORDIAL | _PR_ATTACHED)) {
88 ** NSPR requires a real handle to every thread.
90 ** is not suitable for some thread operations (e.g.,
98 &(thread->md.handle), /* resulting handle */
105 thread->md.blocked_sema = CreateSemaphore(NULL, 0, 1, NULL);
106 if (thread
115 PRThread *thread = (PRThread *)arg; local
121 _PR_MD_CREATE_THREAD(PRThread *thread, void (*start)(void *), PRThreadPriority priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize) argument
165 _PR_MD_SET_PRIORITY(_MDThread *thread, PRThreadPriority newPri) argument
198 _PR_MD_CLEAN_THREAD(PRThread *thread) argument
216 _PR_MD_EXIT_THREAD(PRThread *thread) argument
229 _PR_MD_SETTHREADAFFINITYMASK(PRThread *thread, PRUint32 mask ) argument
238 _PR_MD_GETTHREADAFFINITYMASK(PRThread *thread, PRUint32 *mask) argument
260 _PR_MD_SUSPEND_THREAD(PRThread *thread) argument
273 _PR_MD_RESUME_THREAD(PRThread *thread) argument
285 PRThread *thread; local
[all...]
H A Dntthread.c48 __declspec(thread) PRThread *_pr_current_fiber;
49 __declspec(thread) PRThread *_pr_fiber_last_run;
50 __declspec(thread) _PRCPU *_pr_current_cpu;
51 __declspec(thread) PRUintn _pr_ints_off;
61 extern __declspec(thread) PRThread *_pr_io_restarted_io;
80 * XXXMB - this needs to be done in create thread, since that could
154 _PR_MD_INIT_THREAD(PRThread *thread) argument
156 thread->md.overlapped.ioModel = _MD_BlockingIO;
157 thread->md.overlapped.data.mdThread = &thread
200 PRThread *thread = (PRThread *)arg; local
206 _PR_MD_CREATE_THREAD(PRThread *thread, void (*start)(void *), PRThreadPriority priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize) argument
282 _PR_MD_SET_PRIORITY(_MDThread *thread, PRThreadPriority newPri) argument
315 _PR_MD_CLEAN_THREAD(PRThread *thread) argument
360 _PR_MD_EXIT_THREAD(PRThread *thread) argument
419 PRThread *thread; local
433 _PR_MD_CREATE_PRIMORDIAL_USER_THREAD(PRThread *thread) argument
444 _PR_MD_INIT_CONTEXT(PRThread *thread, char *top, void (*start) (void), PRBool *status) argument
465 _PR_MD_SWITCH_CONTEXT(PRThread *thread) argument
474 _PR_MD_RESTORE_CONTEXT(PRThread *thread) argument
497 _PR_MD_SETTHREADAFFINITYMASK(PRThread *thread, PRUint32 mask ) argument
506 _PR_MD_GETTHREADAFFINITYMASK(PRThread *thread, PRUint32 *mask) argument
528 _PR_MD_SUSPEND_THREAD(PRThread *thread) argument
542 _PR_MD_RESUME_THREAD(PRThread *thread) argument
552 PRThread *thread; local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/threads/combined/
H A Dpruthr.c58 PRInt32 _pr_primordialExitCount; /* In PR_Cleanup(), the primordial thread
64 * If the primordial thread is a system
65 * thread, then _pr_primordialExitCount
66 * is 0. If the primordial thread is
67 * itself a user thread, then
92 static void _PR_DecrActiveThreadCount(PRThread *thread);
95 static void _PR_InitializeRecycledThread(PRThread *thread);
105 PRThread *thread; local
118 stack->stackTop = (char*) &thread;
135 thread
230 _PR_NotifyJoinWaiters(PRThread *thread) argument
265 _PR_InitializeRecycledThread(PRThread *thread) argument
290 _PR_RecycleThread(PRThread *thread) argument
323 _PR_DecrActiveThreadCount(PRThread *thread) argument
341 _PR_DestroyThread(PRThread *thread) argument
348 _PR_NativeDestroyThread(PRThread *thread) argument
364 _PR_UserDestroyThread(PRThread *thread) argument
407 PRThread *thread = (PRThread *)arg; local
499 PRThread *thread = _PR_MD_CURRENT_THREAD(); local
589 _PR_SetThreadPriority(PRThread *thread, PRThreadPriority newPri) argument
652 _PR_Suspend(PRThread *thread) argument
707 _PR_Resume(PRThread *thread) argument
785 PRThread *thread; local
867 PRThread *thread, *me = _PR_MD_CURRENT_THREAD(); local
1012 PRThread *thread; local
1054 PRThread *thread; local
1124 PRThread *thread = NULL; local
1450 PRThread *thread; local
1627 PR_SetThreadPriority(PRThread *thread, PRThreadPriority newPri) argument
1776 _PR_AddSleepQ(PRThread *thread, PRIntervalTime timeout) argument
1841 _PR_DelSleepQ(PRThread *thread, PRBool propogate_time) argument
1874 _PR_AddThreadToRunQ( PRThread *me, PRThread *thread) argument
[all...]
H A Dprucv.c55 ** Notify one thread that it has finished waiting on a condition variable
58 PRBool _PR_NotifyThread (PRThread *thread, PRThread *me) argument
64 _PR_THREAD_LOCK(thread);
65 PR_ASSERT(!(thread->flags & _PR_IDLE_THREAD));
66 if ( !_PR_IS_NATIVE_THREAD(thread) ) {
67 if (thread->wait.cvar != NULL) {
68 thread->wait.cvar = NULL;
70 _PR_SLEEPQ_LOCK(thread->cpu);
74 if (thread->flags & (_PR_ON_SLEEPQ|_PR_ON_PAUSEQ))
75 _PR_DEL_SLEEPQ(thread, PR_TRU
131 _PR_NotifyLockedThread(PRThread *thread) argument
186 _PR_WaitCondVar( PRThread *thread, PRCondVar *cvar, PRLock *lock, PRIntervalTime timeout) argument
341 PRThread *thread, *me = _PR_MD_CURRENT_THREAD(); local
[all...]
/vbox/src/VBox/Additions/common/crOpenGL/pack/
H A Dpackspu_swapbuf.c17 GET_THREAD(thread);
26 packspuFlush( (void *) thread );
34 GET_THREAD(thread);
44 packspuFlush( (void *) thread );
46 if (!(thread->netServer.conn->actual_network))
70 switch( thread->writeback ) {
74 thread->writeback = 1;
77 crPackWritebackSWAP( (GLint *) &thread->writeback );
81 crPackWriteback( (GLint *) &thread->writeback );
87 CRPACKSPU_WRITEBACK_WAIT(thread, threa
[all...]
H A Dpackspu_context.c16 * the calling thread with crSetTSD().
26 ThreadInfo *thread=NULL; local
42 if (!pack_spu.thread[i].inUse)
44 thread = &pack_spu.thread[i];
48 CRASSERT(thread);
50 thread->inUse = GL_TRUE;
52 thread->id = crThreadID();
54 thread->id = THREAD_OFFSET_MAGIC + i;
55 thread
104 ThreadInfo * thread; local
505 ThreadInfo *thread; local
[all...]
H A Dpackspu_misc.c19 GET_THREAD(thread);
26 packspuFlush( (void *) thread );
28 /* the connection is thread->server.conn */
32 crNetSend(thread->netServer.conn, NULL, &msg, len);
93 packspuFlush( (void *) thread );
129 GET_THREAD(thread);
130 GLint writeback = CRPACKSPU_IS_WDDM_CRHGSMI() ? 1 : pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network;
150 packspuFlush( (void *) thread );
152 CRPACKSPU_WRITEBACK_WAIT(thread, writeback);
159 GET_THREAD(thread);
651 ThreadInfo *thread = NULL; local
[all...]
/vbox/src/VBox/Runtime/r0drv/generic/
H A DRTThreadPreemptIsPendingTrusty-r0drv-generic.cpp31 #include <iprt/thread.h>
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/
H A Ddarwin.c60 _MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri) argument
66 _MD_InitializeThread(PRThread *thread) argument
72 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
74 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
75 _PR_MD_SWITCH_CONTEXT(thread);
80 _MD_WAKEUP_WAITER(PRThread *thread) argument
82 if (thread) {
83 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
97 PRThread *thread,
96 _MD_CREATE_THREAD( PRThread *thread, void (*start) (void *), PRThreadPriority priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize) argument
H A Ddgux.c63 _MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri) argument
69 _MD_InitializeThread(PRThread *thread) argument
75 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
77 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
78 _PR_MD_SWITCH_CONTEXT(thread);
83 _MD_WAKEUP_WAITER(PRThread *thread) argument
85 if (thread) {
86 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
100 PRThread *thread,
99 _MD_CREATE_THREAD( PRThread *thread, void (*start) (void *), PRThreadPriority priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize) argument
H A Dnec.c54 _MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri) argument
60 _MD_InitializeThread(PRThread *thread) argument
66 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
68 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
69 _PR_MD_SWITCH_CONTEXT(thread);
74 _MD_WAKEUP_WAITER(PRThread *thread) argument
76 if (thread) {
77 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
91 PRThread *thread,
90 _MD_CREATE_THREAD( PRThread *thread, void (*start) (void *), PRThreadPriority priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize) argument
H A Dosf1.c60 _MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri) argument
66 _MD_InitializeThread(PRThread *thread) argument
72 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
74 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
75 _PR_MD_SWITCH_CONTEXT(thread);
80 _MD_WAKEUP_WAITER(PRThread *thread) argument
82 if (thread) {
83 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
97 PRThread *thread,
96 _MD_CREATE_THREAD( PRThread *thread, void (*start) (void *), PRThreadPriority priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize) argument
H A Dqnx.c56 _MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri) argument
62 _MD_InitializeThread(PRThread *thread) argument
68 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
70 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
71 _PR_MD_SWITCH_CONTEXT(thread);
76 _MD_WAKEUP_WAITER(PRThread *thread) argument
78 if (thread) {
79 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
93 PRThread *thread,
92 _MD_CREATE_THREAD( PRThread *thread, void (*start) (void *), PRUintn priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize) argument
H A Dsony.c62 _MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri) argument
68 _MD_InitializeThread(PRThread *thread) argument
74 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
76 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
77 _PR_MD_SWITCH_CONTEXT(thread);
82 _MD_WAKEUP_WAITER(PRThread *thread) argument
84 if (thread) {
85 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
99 PRThread *thread,
98 _MD_CREATE_THREAD( PRThread *thread, void (*start) (void *), PRThreadPriority priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize) argument
H A Dlinux.c70 _MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri) argument
76 _MD_InitializeThread(PRThread *thread) argument
82 thread->md.sp = _MD_GET_SP_PTR(thread);
83 thread->md.fp = _MD_GET_FP_PTR(thread);
88 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
90 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
91 _PR_MD_SWITCH_CONTEXT(thread);
96 _MD_WAKEUP_WAITER(PRThread *thread) argument
112 _MD_CREATE_THREAD( PRThread *thread, void (*start) (void *), PRThreadPriority priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize) argument
[all...]
H A Dpthreads_user.c136 _MD_SetPriority(_MDThread *thread, PRThreadPriority newPri) argument
144 PR_IMPLEMENT(PRStatus) _MD_InitThread(struct PRThread *thread)
148 if (thread->flags & _PR_GLOBAL_SCOPE) {
149 thread->md.pthread = pthread_self();
168 PR_IMPLEMENT(void) _MD_ExitThread(struct PRThread *thread) argument
170 if (thread->flags & _PR_GLOBAL_SCOPE) {
171 _MD_CLEAN_THREAD(thread);
176 PR_IMPLEMENT(void) _MD_CleanThread(struct PRThread *thread) argument
178 if (thread->flags & _PR_GLOBAL_SCOPE) {
179 pthread_mutex_destroy(&thread
184 _MD_SuspendThread(struct PRThread *thread) argument
202 _MD_ResumeThread(struct PRThread *thread) argument
213 _MD_SuspendCPU(struct _PRCPU *thread) argument
229 _MD_ResumeCPU(struct _PRCPU *thread) argument
[all...]
H A Dsunos4.c45 PRStatus _MD_CREATE_THREAD(PRThread *thread, argument
62 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
64 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
65 _PR_MD_SWITCH_CONTEXT(thread);
70 _MD_WAKEUP_WAITER(PRThread *thread) argument
72 if (thread) {
73 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
78 PRStatus _MD_InitializeThread(PRThread *thread) argument
H A Drhapsody.c60 _MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri) argument
66 _MD_InitializeThread(PRThread *thread) argument
72 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
74 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
75 _PR_MD_SWITCH_CONTEXT(thread);
80 _MD_WAKEUP_WAITER(PRThread *thread) argument
82 if (thread) {
83 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
97 PRThread *thread,
120 int pthread_kill(pthread_t thread, in argument
96 _MD_CREATE_THREAD( PRThread *thread, void (*start) (void *), PRThreadPriority priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize) argument
[all...]
H A Dbsdi.c72 _MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri) argument
78 _MD_InitializeThread(PRThread *thread) argument
84 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
86 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
87 _PR_MD_SWITCH_CONTEXT(thread);
92 _MD_WAKEUP_WAITER(PRThread *thread) argument
94 if (thread) {
95 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
109 PRThread *thread,
108 _MD_CREATE_THREAD( PRThread *thread, void (*start) (void *), PRThreadPriority priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize) argument
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/os2/
H A Dos2thred.c61 /* Allocate thread local storage (TLS). Note, that only 32 bytes can
85 _pr_SetThreadMDHandle(PRThread *thread) argument
93 thread->md.handle = ptib->tib_ptib2->tib2_ultid;
162 /* setup the exception handler for the thread */
179 _PR_MD_INIT_THREAD(PRThread *thread) argument
183 if (thread->flags & (_PR_PRIMORDIAL | _PR_ATTACHED)) {
184 _pr_SetThreadMDHandle(thread);
188 rv = DosCreateEventSem(NULL, &(thread->md.blocked_sema), 0, 0);
195 PRThread* thread; member in struct:param_store
199 handler before calling the initial thread functio
216 _PR_MD_CREATE_THREAD(PRThread *thread, void (*start)(void *), PRThreadPriority priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize) argument
262 _PR_MD_SET_PRIORITY(_MDThread *thread, PRThreadPriority newPri) argument
295 _PR_MD_CLEAN_THREAD(PRThread *thread) argument
311 _PR_MD_EXIT_THREAD(PRThread *thread) argument
371 _PR_MD_SUSPEND_THREAD(PRThread *thread) argument
385 _PR_MD_RESUME_THREAD(PRThread *thread) argument
396 PRThread *thread; local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/cplus/tests/
H A Dthread.cpp38 /* thread.cpp - a test program */
77 TestThread *thread; member in class:Foo1
84 thread = new TestThread(RCThread::joinable, 0xafaf);
85 thread->Start();
90 PRStatus rv = thread->Join();
98 RCThread *thread[10]; local
101 TestThread *thread = new TestThread(RCThread::joinable, count); local
102 status = thread->Start(); /* have to remember to start it */
104 status = thread->Join(); /* this should work */
109 TestThread *thread local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/threads/
H A Dprcthr.c56 ** Clean up a thread object, releasing all of the attached data. Do not
59 void _PR_CleanupThread(PRThread *thread) argument
61 /* Free up per-thread-data */
62 _PR_DestroyThreadPrivate(thread);
64 /* Free any thread dump procs */
65 if (thread->dumpArg) {
66 PR_DELETE(thread->dumpArg);
68 thread->dump = 0;
70 PR_DELETE(thread->errorString);
71 thread
286 PR_GetSP(PRThread *thread) argument
291 GetExecutionEnvironment(PRThread *thread) argument
296 SetExecutionEnvironment(PRThread *thread, void *env) argument
[all...]
H A Dprdump.c68 void _PR_DumpThread(PRFileDesc *fd, PRThread *thread) argument
73 thread->id, thread, thread->priority, thread->flags);
74 switch (thread->state) {
79 _PR_DumpPrintf(fd, " lock=%p", thread->wait.lock);
83 thread->wait.cvar, thread->sleep);
93 if (thread
149 PR_SetThreadDumpProc(PRThread* thread, PRThreadDumpProc dump, void *arg) argument
[all...]
/vbox/src/VBox/Runtime/include/internal/
H A Dsched.h30 #include <iprt/thread.h>
32 #include "internal/thread.h"
38 * process priority, assuming the current thread have the type enmType.
41 * @param enmType The thread type to be assumed for the current thread.

Completed in 120 milliseconds

1234567891011>>