Searched defs:thread (Results 51 - 75 of 129) sorted by relevance

123456

/vbox/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/LzmaCompress/Sdk/C/
H A DLzFindMt.h25 CThread thread; member in struct:_CMtSync
/vbox/src/VBox/Devices/Network/lwip/vbox/
H A Dsys_arch.c26 #include <iprt/thread.h>
58 void (* thread)(void *arg); member in struct:__anon14897
76 /** Synchronization for thread creation handling. */
83 /** The simulated thread local storage for lwIP things. */
327 * Grab the pointer to this thread's timeouts from TLS.
371 * Internal: thread main function adapter, dropping the first parameter. Needed
372 * to make lwip thread main function compatible with IPRT thread main function.
377 tls->thread(tls->arg);
382 * Create new thread
[all...]
/vbox/src/VBox/Devices/Network/lwip-new/vbox/
H A Dsys_arch.c26 #include <iprt/thread.h>
58 void (* thread)(void *arg); member in struct:__anon14932
80 /** Synchronization for thread creation handling. */
87 /** The simulated thread local storage for lwIP things. */
448 * Grab the pointer to this thread's timeouts from TLS.
493 * Internal: thread main function adapter, dropping the first parameter. Needed
494 * to make lwip thread main function compatible with IPRT thread main function.
499 tls->thread(tls->arg);
504 * Create new thread
506 sys_thread_new(const char*name, lwip_thread_fn thread, void *arg, int stacksize, int prio) argument
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/lib/msgc/tests/
H A Dthrashgc.c220 PRThread* thread; local
223 thread = PR_CreateThreadGCAble(PR_USER_THREAD, /* thread type */
227 PR_LOCAL_THREAD, /* thread scope */
228 PR_UNJOINABLE_THREAD, /* thread state */
230 if (thread == 0) {
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/private/
H A Dpprmwait.h83 PRCondVar *new_business; /* polling thread waits here more work */
85 PRThread* poller; /* thread that's actually doing the poll() */
126 PRThread *thread; /* thread in midst of an enumeration */ member in struct:PRMWaitEnumerator
H A Dpprthred.h102 ** Associate a thread object with an existing native thread.
103 ** "type" is the type of thread object to attach
104 ** "priority" is the priority to assign to the thread
109 ** function returns. The thread object is automatically destroyed.
112 ** thread. PR_Init does this automatically for the primordial thread.
119 ** Detach the nspr thread from the currently executing native thread.
120 ** The thread objec
135 NSPR_API(PRUint32) PR_GetThreadID(PRThread *thread); variable
237 NSPR_API(void *) PR_GetSP(PRThread *thread); variable
262 NSPR_API(void*) GetExecutionEnvironment(PRThread *thread); variable
362 NSPR_API(void) PR_Mac_PostAsyncNotify(PRThread *thread); variable
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/
H A Dprthread.h48 ** In general, a thread of a higher priority has a statistically better
50 ** NSPR uses multiple strategies to provide execution vehicles for thread
55 ** a single GLOBAL thread.
58 ** thread associated with a given GLOBAL thread. It is further assumed
62 ** Threads have a "system flag" which when set indicates the thread
64 ** process exits when the last user thread exits).
68 ** indicates whether a thread is permanently bound to a native OS thread.
69 ** An unbound thread compete
177 NSPR_API(PRStatus) PR_JoinThread(PRThread *thread); variable
191 NSPR_API(PRThreadPriority) PR_GetThreadPriority(const PRThread *thread); variable
261 NSPR_API(PRStatus) PR_Interrupt(PRThread *thread); variable
291 NSPR_API(PRThreadScope) PR_GetThreadScope(const PRThread *thread); variable
296 NSPR_API(PRThreadType) PR_GetThreadType(const PRThread *thread); variable
301 NSPR_API(PRThreadState) PR_GetThreadState(const PRThread *thread); variable
[all...]
H A Dprtrace.h81 ** Trace Facility methods are thread-safe and SMP safe.
130 PRThread *thread; /* The thread creating the trace entry */ member in struct:PRTraceEntry
588 ** thread, the function appears to block until another thread
591 ** called from a user supplied thread whose only job is to
603 ** load, the thread priority of the recording thread, number of
617 ** Only one thread can call PR_RecordTraceEntries() within a
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/bthreads/
H A Dbtthread.c51 #define BT_THREAD_PRIMORD 0x01 /* this is the primordial thread */
52 #define BT_THREAD_SYSTEM 0x02 /* this is a system thread */
53 #define BT_THREAD_JOINABLE 0x04 /* this is a joinable thread */
58 sem_id cleanUpSem; /* the primoridal thread will block on this
79 actually allocate one per thread, but that seems a bit excessive,
106 ** Create and initialize NSPR structure for our primordial thread.
129 /* set the thread's state - note that the thread is not joinable */
143 ** Stuff our new PRThread structure into our thread specific
202 /* first, clean up all thread
655 PRThread *thread; local
[all...]
/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/md/unix/
H A Daix.c157 _MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri) argument
163 _MD_InitializeThread(PRThread *thread)
169 _MD_WAIT(PRThread *thread, PRIntervalTime ticks)
171 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
172 _PR_MD_SWITCH_CONTEXT(thread);
177 _MD_WAKEUP_WAITER(PRThread *thread)
179 if (thread) {
180 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
194 PRThread *thread,
H A Dhpux.c100 * code, we allocate a new stack for the primordial thread and
145 _MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri) argument
151 _MD_InitializeThread(PRThread *thread) argument
157 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
159 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
160 _PR_MD_SWITCH_CONTEXT(thread);
165 _MD_WAKEUP_WAITER(PRThread *thread) argument
167 if (thread) {
168 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
182 PRThread *thread,
181 _MD_CREATE_THREAD( PRThread *thread, void (*start) (void *), PRThreadPriority priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize) argument
194 _MD_suspend_thread(PRThread *thread) argument
201 _MD_resume_thread(PRThread *thread) argument
[all...]
H A Dncr.c137 _MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri) argument
143 _MD_InitializeThread(PRThread *thread) argument
149 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
151 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
152 _PR_MD_SWITCH_CONTEXT(thread);
157 _MD_WAKEUP_WAITER(PRThread *thread) argument
159 if (thread) {
160 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
174 PRThread *thread,
213 * NSPR thread syste
173 _MD_CREATE_THREAD( PRThread *thread, void (*start) (void *), PRUintn priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize) argument
[all...]
H A Dnextstep.c236 _MD_SET_PRIORITY(_MDThread *thread, PRUintn newPri) argument
242 _MD_InitializeThread(PRThread *thread) argument
248 _MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
250 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
251 _PR_MD_SWITCH_CONTEXT(thread);
256 _MD_WAKEUP_WAITER(PRThread *thread) argument
258 if (thread) {
259 PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
273 PRThread *thread,
272 _MD_CREATE_THREAD( PRThread *thread, void (*start) (void *), PRThreadPriority priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize) argument
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...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/windows/
H A Dw16thred.c43 ** DispatchTrace -- define a thread dispatch trace entry
50 ** for the newly dispatched thread.
57 PRThread * thread; member in struct:DispatchTrace
65 static void TraceDispatch( PRThread *thread );
83 static PRUint32 dispatchCount = 0; /* instrumentation: number of thread dispatches */
97 ** primordial thread are created, early in initialization, the
160 _PR_MD_INIT_THREAD(PRThread *thread) argument
162 if ( thread->flags & _PR_PRIMORDIAL)
164 _pr_primordialThread = thread;
165 thread
180 _PR_MD_WAIT(PRThread *thread, PRIntervalTime ticks) argument
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/tests/
H A Dalarm.c132 PRThread *thread; local
142 thread = PR_CreateThread(
161 (void)PR_JoinThread(thread);
H A Dbug1test.c185 PRThread *thread = PR_CreateThread( local
H A Dcvar2.c45 ** other half have their own condvar. The main thread then loops
78 PRThread *thread; member in struct:threadinfo
111 printf("shared thread %ld notified in loop %ld\n", info->id, index);
122 printf("shared thread %ld terminating\n", info->id);
136 DPRINTF(("PrivateCondVarThread: thread 0x%lx waiting on cvar = 0x%lx\n",
141 printf("solo thread %ld notified in loop %ld\n", info->id, index);
149 DPRINTF(("PrivateCondVarThread: thread 0x%lx notified exitcvar = 0x%lx cnt = %ld\n",
154 printf("solo thread %ld terminating\n", info->id);
182 info->thread = PR_CreateThread(
190 if (!info->thread)
[all...]
H A Dforeign.c42 ** We create a thread and get it to call exactly one runtime function.
43 ** The thread is allowed to be created by some other environment that
101 #include <thread.h>
147 PRThread *thread = PR_CreateThread( local
151 rv = (NULL == thread) ? PR_FAILURE : PR_SUCCESS;
239 NULL, /* LPSECURITY_ATTRIBUTES - pointer to thread security attributes */
240 0U, /* DWORD - initial thread stack size, in bytes */
241 windows_start, /* LPTHREAD_START_ROUTINE - pointer to thread function */
242 start_object, /* LPVOID - argument for new thread */
244 &id /* LPDWORD - pointer to returned thread identifie
[all...]
H A Dlock.c177 PRThread *thread = NULL; local
186 thread = PR_CreateThread(
189 PR_ASSERT(thread != NULL);
203 status = PR_JoinThread(thread);
246 if (debug_mode) PR_fprintf(std_err, "Reentrant thread created\n");
248 if (debug_mode) PR_fprintf(std_err, "Reentrant thread acquired monitor\n");
250 if (debug_mode) PR_fprintf(std_err, "Reentrant thread released monitor\n");
256 PRThread *thread; local
264 thread = PR_CreateThread(
267 PR_ASSERT(thread !
301 PRThread *thread = NULL; local
369 PRThread *thread = NULL; local
[all...]
H A Dtmoacc.c200 PRThread **thread; local
272 thread = (PRThread**)PR_CALLOC(threads * sizeof(PRThread*));
275 thread[index] = PR_CreateThread(
279 PR_ASSERT(NULL != thread[index]);
288 rv = PR_Interrupt(thread[index]);
290 rv = PR_JoinThread(thread[index]);
293 PR_DELETE(thread);
H A Dtmocon.c293 PRThread **thread = NULL; local
373 thread = (PRThread**)PR_CALLOC(threads * sizeof(PRThread*));
376 thread[index] = PR_CreateThread(
381 rv = PR_JoinThread(thread[index]);
383 PR_DELETE(thread);
/vbox/src/libs/xpcom18a4/xpcom/base/
H A DnsExceptionService.cpp109 // service itself ensures one per thread. However, there are two methods that
110 // may be called on foreign threads: DropAllThreads (called on the thread
112 // internal thread struct, so that PR_GetCurrentThread() will create a new one
115 // holding objects (i.e. it's thread-safe to call them), but
177 : mProviders(4, PR_TRUE) /* small, thread-safe hashtable */
217 NS_WARNING("nsExceptionService ignoring thread destruction after shutdown");
277 // The reference count is held in the thread-list
344 // thread management
345 /*static*/ void nsExceptionService::AddThread(nsExceptionManager *thread) argument
348 thread
354 DoDropThread(nsExceptionManager *thread) argument
366 DropThread(nsExceptionManager *thread) argument
[all...]
/vbox/src/libs/xpcom18a4/xpcom/tests/
H A DTestPipes.cpp132 nsIThread* thread; local
137 rv = NS_NewThread(&thread, receiver, 0, PR_JOINABLE_THREAD);
163 thread->Join();
169 NS_RELEASE(thread);
245 nsIThread* thread; local
250 rv = NS_NewThread(&thread, receiver, 0, PR_JOINABLE_THREAD);
277 thread->Join();
280 NS_RELEASE(thread);
470 nsIThread* thread;
475 rv = NS_NewThread(&thread, pum
[all...]

Completed in 79 milliseconds

123456