/vbox/src/VBox/Runtime/generic/ |
H A D | RTThreadGetNativeState-generic.cpp | 41 PRTTHREADINT pThread = rtThreadGet(hThread); local 42 if (pThread) 45 rtThreadRelease(pThread);
|
H A D | sched-generic.cpp | 79 * @param pThread The thread in question. 83 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) argument
|
H A D | tls-generic.cpp | 113 PRTTHREADINT pThread = rtThreadGet(RTThreadSelf()); 114 AssertReturn(pThread, VERR_NOT_SUPPORTED); 115 void *pv = pThread->apvTlsEntries[iTls]; 116 rtThreadRelease(pThread); 129 PRTTHREADINT pThread = rtThreadGet(RTThreadSelf()); 130 AssertReturn(pThread, VERR_NOT_SUPPORTED); 131 pThread->apvTlsEntries[iTls] = pvValue; 132 rtThreadRelease(pThread); 141 * @param pThread The current thread. 143 DECLHIDDEN(void) rtThreadTlsDestruction(PRTTHREADINT pThread) argument [all...] |
/vbox/src/VBox/Runtime/r3/linux/ |
H A D | RTThreadGetNativeState-linux.cpp | 49 PRTTHREADINT pThread = rtThreadGet(hThread); local 50 if (pThread) 55 RTStrPrintf(szName, sizeof(szName), "/proc/self/task/%u/stat", pThread->tid); 107 rtThreadRelease(pThread);
|
/vbox/src/VBox/Runtime/r0drv/linux/ |
H A D | thread2-r0drv-linux.c | 52 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) argument 99 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread) argument 105 DECLHIDDEN(void) rtThreadNativeWaitKludge(PRTTHREADINT pThread) argument 108 RTThreadSleep(1); NOREF(pThread); 112 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread) argument 114 NOREF(pThread); 128 PRTTHREADINT pThread = (PRTTHREADINT)pvArg; local 130 rtThreadMain(pThread, (RTNATIVETHREAD)current, &pThread->szName[0]);
|
/vbox/src/VBox/Runtime/r0drv/os2/ |
H A D | thread2-r0drv-os2.cpp | 53 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) argument 55 NOREF(pThread); 61 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread) argument 63 NOREF(pThread); 67 DECLHIDDEN(void) rtThreadNativeWaitKludge(PRTTHREADINT pThread) argument 69 NOREF(pThread); 73 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread) argument 75 NOREF(pThread);
|
/vbox/src/VBox/Runtime/r0drv/freebsd/ |
H A D | thread2-r0drv-freebsd.c | 55 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) argument 92 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread) argument 94 NOREF(pThread); 101 DECLHIDDEN(void) rtThreadNativeWaitKludge(PRTTHREADINT pThread) argument 108 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread) argument 110 NOREF(pThread);
|
/vbox/src/VBox/Runtime/r0drv/haiku/ |
H A D | thread2-r0drv-haiku.c | 56 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) argument 78 status = set_thread_priority((thread_id)pThread->Core.Key, iPriority); 84 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread) argument 90 DECLHIDDEN(void) rtThreadNativeWaitKludge(PRTTHREADINT pThread) argument 97 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread) argument 99 NOREF(pThread); 114 PRTTHREADINT pThread = (PRTTHREADINT)pvArg; local 116 int rc = rtThreadMain(pThread, (RTNATIVETHREAD)Self, &pThread->szName[0]);
|
/vbox/src/VBox/Runtime/r0drv/nt/ |
H A D | thread2-r0drv-nt.cpp | 52 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) argument 79 /*KPRIORITY oldPririty = */KeSetPriorityThread((PKTHREAD)pThread->Core.Key, Priority); 84 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread) argument 90 DECLHIDDEN(void) rtThreadNativeWaitKludge(PRTTHREADINT pThread) argument 92 PVOID pvThreadObj = pThread->Core.Key; 98 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread) argument 100 NOREF(pThread); 114 PRTTHREADINT pThread = (PRTTHREADINT)pvArg; local 116 rtThreadMain(pThread, (RTNATIVETHREAD)Self, &pThread [all...] |
/vbox/src/VBox/Runtime/r0drv/solaris/ |
H A D | thread2-r0drv-solaris.c | 55 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) argument 88 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread) argument 90 NOREF(pThread); 97 DECLHIDDEN(void) rtThreadNativeWaitKludge(PRTTHREADINT pThread) argument 99 thread_join(pThread->tid); 103 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread) argument 105 NOREF(pThread); 128 kthread_t *pThread; local 133 pThread = thread_create(NULL, /* Stack, use base */ 142 if (RT_LIKELY(pThread)) [all...] |
H A D | semeventwait-r0drv-solaris.h | 81 kthread_t *pThread; member in struct:RTR0SEMSOLWAIT 180 pWait->pThread = curthread; 200 kthread_t *pThread = pWait->pThread; 218 setrun(pThread); 233 kthread_t *pThread = pWait->pThread; 245 setrun(pThread); 441 pWait->pThread = NULL;
|
H A D | semevent-r0drv-solaris.c | 66 kthread_t *pThread; member in struct:RTSEMEVENTSOLENTRY 227 setrun(pWaiter->pThread); 283 Waiter.pThread = curthread;
|
/vbox/src/VBox/Runtime/r3/os2/ |
H A D | sched-os2.cpp | 223 * @param pThread The thread in question. 227 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) argument 234 APIRET rc = DosSetPriority(PRTYS_THREAD, g_pProcessPriority->aTypes[enmType].ulClass, g_pProcessPriority->aTypes[enmType].ulDelta, (ULONG)pThread->Core.Key & 0xffff /*tid*/);
|
H A D | thread-os2.cpp | 101 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread) argument 104 *g_ppCurThread = pThread; 109 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread) argument 111 if (pThread == *g_ppCurThread) 126 PRTTHREADINT pThread = (PRTTHREADINT)pvArgs; local 127 *g_ppCurThread = pThread; 130 rtThreadMain(pThread, fibGetTidPid(), &pThread->szName[0]); 132 rtThreadMain(pThread, _gettid(), &pThread 140 rtThreadNativeCreate(PRTTHREADINT pThread, PRTNATIVETHREAD pNativeThread) argument 167 PRTTHREADINT pThread = *g_ppCurThread; local [all...] |
/vbox/src/VBox/Runtime/r3/win/ |
H A D | sched-win.cpp | 286 * @param pThread The thread. 288 DECLINLINE(HANDLE) rtThreadNativeGetHandle(PRTTHREADINT pThread) argument 290 if ((uintptr_t)pThread->Core.Key == GetCurrentThreadId()) 292 return (HANDLE)pThread->hThread; 304 * @param pThread The thread in question. 308 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) argument 315 if (SetThreadPriority(rtThreadNativeGetHandle(pThread), g_pProcessPriority->aTypes[enmType].dwThreadPriority)) 321 rtThreadNativeGetHandle(pThread), g_pProcessPriority->aTypes[enmType].dwThreadPriority, dwLastError, rc));
|
H A D | thread-win.cpp | 83 PRTTHREADINT pThread = (PRTTHREADINT)TlsGetValue(g_dwSelfTLS); local 84 if ( pThread 85 && (pThread->fIntFlags & RTTHREADINT_FLAGS_ALIEN)) 87 rtThreadTerminate(pThread, 0); 93 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread) argument 95 if (pThread == (PRTTHREADINT)TlsGetValue(g_dwSelfTLS)) 98 if ((HANDLE)pThread->hThread != INVALID_HANDLE_VALUE) 100 CloseHandle((HANDLE)pThread->hThread); 101 pThread->hThread = (uintptr_t)INVALID_HANDLE_VALUE; 106 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread) argument 116 rtThreadNativeInformDebugger(PRTTHREADINT pThread) argument [all...] |
/vbox/src/VBox/Runtime/r0drv/darwin/ |
H A D | thread2-r0drv-darwin.cpp | 56 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) argument 111 kern_return_t kr = thread_policy_set((thread_t)pThread->Core.Key, THREAD_PRECEDENCE_POLICY, 117 kr = thread_policy_set((thread_t)pThread->Core.Key, THREAD_EXTENDED_POLICY, 124 kr = thread_policy_set((thread_t)pThread->Core.Key, THREAD_TIME_CONSTRAINT_POLICY, 133 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread) argument 139 DECLHIDDEN(void) rtThreadNativeWaitKludge(PRTTHREADINT pThread) argument 146 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread) argument 148 NOREF(pThread); 163 PRTTHREADINT pThread = (PRTTHREADINT)pvArg; local 165 rtThreadMain(pThread, (RTNATIVETHREA [all...] |
/vbox/src/VBox/Runtime/r3/darwin/ |
H A D | sched-darwin.cpp | 277 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType) argument 279 Assert(pThread->Core.Key == pthread_self()); 291 int err = pthread_getschedparam((pthread_t)pThread->Core.Key, &iSchedPolicy, &SchedParam); 303 err = pthread_setschedparam((pthread_t)pThread->Core.Key, iSchedPolicy, &SchedParam); 312 err = pthread_setschedparam((pthread_t)pThread->Core.Key, iSchedPolicy, &SchedParam); 319 err = pthread_setschedparam((pthread_t)pThread->Core.Key, iSchedPolicy, &SchedParam);
|
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTMemCache.cpp | 205 PTST3THREAD pThread = (PTST3THREAD)(pvArg); local 206 size_t cbObject = pThread->cbObject; 210 RTTEST_CHECK_RC_OK(g_hTest, RTSemEventMultiWait(pThread->hEvt, RT_INDEFINITE_WAIT)); 213 if (pThread->fUseCache) 249 pThread->cIterations = cIterations;
|
/vbox/src/VBox/Additions/common/VBoxService/ |
H A D | VBoxServiceControl.cpp | 411 PVBOXSERVICECTRLSESSIONTHREAD pThread; local 412 RTListForEach(&g_lstControlSessionThreads, pThread, VBOXSERVICECTRLSESSIONTHREAD, Node) 414 if (pThread->StartupInfo.uSessionID == uSessionID) 416 rc = GstCntlSessionThreadDestroy(pThread, uFlags);
|
/vbox/src/VBox/Runtime/include/internal/ |
H A D | thread.h | 158 * This creates the thread as described in pThreadInt and stores the thread id in *pThread. 170 * @param pThread Pointer to the thread structure. 172 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread); variable 178 * @param pThread The thread structure. 180 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread); variable 187 * @param pThread The thread structure. 189 DECLHIDDEN(void) rtThreadNativeWaitKludge(PRTTHREADINT pThread); variable 201 * @param pThread The thread in question. 205 DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType); 219 * @param pThread Th 221 DECLHIDDEN(void) rtThreadNativeInformDebugger(PRTTHREADINT pThread); variable 228 DECLHIDDEN(uint32_t) rtThreadRelease(PRTTHREADINT pThread); variable 243 DECLHIDDEN(void) rtThreadTlsDestruction(PRTTHREADINT pThread); /* in tls-generic.cpp */ variable 254 rtThreadGetState(PRTTHREADINT pThread) argument 265 rtThreadSetState(PRTTHREADINT pThread, RTTHREADSTATE enmNewState) argument [all...] |
/vbox/src/VBox/Runtime/r3/posix/ |
H A D | thread-posix.cpp | 239 PRTTHREADINT pThread = (PRTTHREADINT)pvValue; local 240 if (pThread->fIntFlags & RTTHREADINT_FLAGS_ALIEN) 242 pthread_setspecific(g_SelfKey, pThread); 243 rtThreadTerminate(pThread, 0); 267 * @param pThread Pointer to the thread structure. 269 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread) argument 273 int rc = pthread_setspecific(g_SelfKey, pThread); 280 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread) argument 282 if (pThread == (PRTTHREADINT)pthread_getspecific(g_SelfKey)) 292 PRTTHREADINT pThread local 332 rtThreadNativeCreate(PRTTHREADINT pThread, PRTNATIVETHREAD pNativeThread) argument 377 PRTTHREADINT pThread = (PRTTHREADINT)pthread_getspecific(g_SelfKey); local 387 PRTTHREADINT pThread = rtThreadGet(hThread); local [all...] |
/vbox/src/VBox/Devices/Network/ |
H A D | DrvVDE.cpp | 74 PPDMTHREAD pThread; member in struct:DRVVDE 301 static DECLCALLBACK(int) drvVDEAsyncIoThread(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) argument 306 if (pThread->enmState == PDMTHREADSTATE_INITIALIZING) 314 while (pThread->enmState == PDMTHREADSTATE_RUNNING) 331 if (pThread->enmState != PDMTHREADSTATE_RUNNING) 398 LogFlow(("drvVDEAsyncIoThread: Control message: enmState=%d revents=%#x\n", pThread->enmState, aFDs[1].revents)); 435 * @param pThread The send thread. 437 static DECLCALLBACK(int) drvVDEAsyncIoWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) argument 617 rc = PDMDrvHlpThreadCreate(pDrvIns, &pThis->pThread, pThis, drvVDEAsyncIoThread, drvVDEAsyncIoWakeup, 128 * _1K, RTTHREADTYPE_IO, "VDE");
|
/vbox/src/VBox/Devices/Storage/ |
H A D | DrvSCSIHost.cpp | 340 * @param pThread Pointer to the thread instance data. 342 static int drvscsihostAsyncIOLoop(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) argument 349 if (pThread->enmState == PDMTHREADSTATE_INITIALIZING) 352 while (pThread->enmState == PDMTHREADSTATE_RUNNING) 361 static int drvscsihostAsyncIOLoopWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) argument
|
/vbox/include/VBox/vmm/ |
H A D | pdmthread.h | 91 * @param pThread The PDM thread data. 93 typedef int FNPDMTHREADDEV(PPDMDEVINS pDevIns, PPDMTHREAD pThread); 102 * @param pThread The PDM thread data. 104 typedef int FNPDMTHREADUSB(PPDMUSBINS pUsbIns, PPDMTHREAD pThread); 113 * @param pThread The PDM thread data. 115 typedef int FNPDMTHREADDRV(PPDMDRVINS pDrvIns, PPDMTHREAD pThread); 124 * @param pThread The PDM thread data. 126 typedef int FNPDMTHREADINT(PVM pVM, PPDMTHREAD pThread); 134 * @param pThread The PDM thread data. 136 typedef int FNPDMTHREADEXT(PPDMTHREAD pThread); 287 VMMR3DECL(int) PDMR3ThreadIAmSuspending(PPDMTHREAD pThread); variable 288 VMMR3DECL(int) PDMR3ThreadIAmRunning(PPDMTHREAD pThread); variable 290 VMMR3DECL(int) PDMR3ThreadSuspend(PPDMTHREAD pThread); variable 291 VMMR3DECL(int) PDMR3ThreadResume(PPDMTHREAD pThread); variable [all...] |