/vbox/src/VBox/Additions/common/VBoxGuestLib/ |
H A D | VBoxGuestR3LibEvent.cpp | 46 * @param cMillies How long to wait before giving up and returning 51 VBGLR3DECL(int) VbglR3WaitEvent(uint32_t fMask, uint32_t cMillies, uint32_t *pfEvents) argument 53 LogFlow(("VbglR3WaitEvent: fMask=0x%x, cMillies=%u, pfEvents=%p\n", 54 fMask, cMillies, pfEvents)); 59 waitEvent.u32TimeoutIn = cMillies;
|
/vbox/src/VBox/Runtime/generic/ |
H A D | RTSemEventMultiWait-2-ex-generic.cpp | 40 RTDECL(int) RTSemEventMultiWait(RTSEMEVENTMULTI hEventMultiSem, RTMSINTERVAL cMillies) argument 43 if (cMillies == RT_INDEFINITE_WAIT) 48 cMillies);
|
H A D | RTSemEventMultiWaitNoResume-2-ex-generic.cpp | 41 RTDECL(int) RTSemEventMultiWaitNoResume(RTSEMEVENTMULTI hEventMultiSem, RTMSINTERVAL cMillies) argument 44 if (cMillies == RT_INDEFINITE_WAIT) 49 cMillies);
|
H A D | RTSemEventWait-2-ex-generic.cpp | 40 RTDECL(int) RTSemEventWait(RTSEMEVENT hEventSem, RTMSINTERVAL cMillies) argument 43 if (cMillies == RT_INDEFINITE_WAIT) 48 cMillies);
|
H A D | RTSemEventWaitNoResume-2-ex-generic.cpp | 41 RTDECL(int) RTSemEventWaitNoResume(RTSEMEVENT hEventSem, RTMSINTERVAL cMillies) argument 44 if (cMillies == RT_INDEFINITE_WAIT) 49 cMillies);
|
H A D | RTSemEventMultiWait-generic.cpp | 41 RTDECL(int) RTSemEventMultiWait(RTSEMEVENTMULTI EventSem, RTMSINTERVAL cMillies) argument 44 if (cMillies == RT_INDEFINITE_WAIT) 46 do rc = RTSemEventMultiWaitNoResume(EventSem, cMillies); 52 rc = RTSemEventMultiWaitNoResume(EventSem, cMillies); 58 if (u64Elapsed >= cMillies) 60 rc = RTSemEventMultiWaitNoResume(EventSem, cMillies - (RTMSINTERVAL)u64Elapsed);
|
H A D | RTSemEventWait-generic.cpp | 41 RTDECL(int) RTSemEventWait(RTSEMEVENT EventSem, RTMSINTERVAL cMillies) argument 44 if (cMillies == RT_INDEFINITE_WAIT) 46 do rc = RTSemEventWaitNoResume(EventSem, cMillies); 52 rc = RTSemEventWaitNoResume(EventSem, cMillies); 58 if (u64Elapsed >= cMillies) 60 rc = RTSemEventWaitNoResume(EventSem, cMillies - (RTMSINTERVAL)u64Elapsed);
|
H A D | RTSemMutexRequest-generic.cpp | 41 RTDECL(int) RTSemMutexRequest(RTSEMMUTEX Mutex, RTMSINTERVAL cMillies) argument 44 if (cMillies == RT_INDEFINITE_WAIT) 46 do rc = RTSemMutexRequestNoResume(Mutex, cMillies); 52 rc = RTSemMutexRequestNoResume(Mutex, cMillies); 58 if (u64Elapsed >= cMillies) 60 rc = RTSemMutexRequestNoResume(Mutex, cMillies - (RTMSINTERVAL)u64Elapsed);
|
H A D | RTSemMutexRequestDebug-generic.cpp | 41 RTDECL(int) RTSemMutexRequestDebug(RTSEMMUTEX Mutex, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL) argument 44 if (cMillies == RT_INDEFINITE_WAIT) 46 do rc = RTSemMutexRequestNoResumeDebug(Mutex, cMillies, uId, RT_SRC_POS_ARGS); 52 rc = RTSemMutexRequestNoResumeDebug(Mutex, cMillies, uId, RT_SRC_POS_ARGS); 58 if (u64Elapsed >= cMillies) 60 rc = RTSemMutexRequestNoResumeDebug(Mutex, cMillies - (RTMSINTERVAL)u64Elapsed, uId, RT_SRC_POS_ARGS);
|
/vbox/src/VBox/Runtime/r0drv/darwin/ |
H A D | thread-r0drv-darwin.cpp | 46 static int rtR0ThreadDarwinSleepCommon(RTMSINTERVAL cMillies) argument 50 clock_interval_to_deadline(cMillies, kMillisecondScale, &u64Deadline); 56 RTDECL(int) RTThreadSleep(RTMSINTERVAL cMillies) argument 58 return rtR0ThreadDarwinSleepCommon(cMillies); 62 RTDECL(int) RTThreadSleepNoLog(RTMSINTERVAL cMillies) argument 64 return rtR0ThreadDarwinSleepCommon(cMillies);
|
/vbox/src/VBox/Runtime/r0drv/haiku/ |
H A D | thread-r0drv-haiku.c | 49 RTDECL(int) RTThreadSleep(RTMSINTERVAL cMillies) argument 52 snooze((bigtime_t)cMillies * 1000);
|
H A D | semmutex-r0drv-haiku.c | 182 RTDECL(int) RTSemMutexRequest(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies) argument 184 return rtSemMutexRequestEx(hMutexSem, RTSEMWAIT_FLAGS_RELATIVE | RTSEMWAIT_FLAGS_RESUME | RTSEMWAIT_FLAGS_MILLISECS, cMillies); 188 RTDECL(int) RTSemMutexRequestDebug(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL) argument 190 return RTSemMutexRequest(hMutexSem, cMillies); 194 RTDECL(int) RTSemMutexRequestNoResume(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies) argument 196 return rtSemMutexRequestEx(hMutexSem, RTSEMWAIT_FLAGS_RELATIVE | RTSEMWAIT_FLAGS_NORESUME | RTSEMWAIT_FLAGS_MILLISECS, cMillies); 200 RTDECL(int) RTSemMutexRequestNoResumeDebug(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL) argument 202 return RTSemMutexRequestNoResume(hMutexSem, cMillies);
|
/vbox/src/VBox/Runtime/r3/win/ |
H A D | thread2-win.cpp | 49 RTR3DECL(int) RTThreadSleep(RTMSINTERVAL cMillies) argument 51 LogFlow(("RTThreadSleep: cMillies=%d\n", cMillies)); 52 Sleep(cMillies); 53 LogFlow(("RTThreadSleep: returning %Rrc (cMillies=%d)\n", VINF_SUCCESS, cMillies)); 58 RTR3DECL(int) RTThreadSleepNoLog(RTMSINTERVAL cMillies) argument 60 Sleep(cMillies);
|
/vbox/src/VBox/Runtime/common/misc/ |
H A D | semspingpong.cpp | 193 * @param cMillies Number of milliseconds to wait. 195 RTDECL(int) RTSemPingWait(PRTPINGPONG pPP, RTMSINTERVAL cMillies) argument 211 int rc = RTSemEventWait(pPP->Ping, cMillies); 226 * @param cMillies Number of milliseconds to wait. 228 RTDECL(int) RTSemPongWait(PRTPINGPONG pPP, RTMSINTERVAL cMillies) argument 244 int rc = RTSemEventWait(pPP->Pong, cMillies);
|
/vbox/src/VBox/Runtime/r0drv/freebsd/ |
H A D | thread-r0drv-freebsd.c | 48 static int rtR0ThreadFbsdSleepCommon(RTMSINTERVAL cMillies) argument 56 if (!cMillies) 65 if (cMillies != RT_INDEFINITE_WAIT) 68 cTicks = cMillies; 70 cTicks = cMillies / 10; 73 int64_t cTicks64 = ((uint64_t)cMillies * hz) / 1000; 102 RTDECL(int) RTThreadSleep(RTMSINTERVAL cMillies) argument 104 return rtR0ThreadFbsdSleepCommon(cMillies); 108 RTDECL(int) RTThreadSleepNoLog(RTMSINTERVAL cMillies) argument 110 return rtR0ThreadFbsdSleepCommon(cMillies); [all...] |
H A D | semmutex-r0drv-freebsd.c | 96 RTDECL(int) RTSemMutexRequest(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies) argument 103 if (cMillies == RT_INDEFINITE_WAIT) 108 else if (!cMillies) 133 } while (RTTimeSystemMilliTS() - StartTS < cMillies); 140 RTDECL(int) RTSemMutexRequestDebug(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL) argument 142 return RTSemMutexRequest(hMutexSem, cMillies); 146 RTDECL(int) RTSemMutexRequestNoResume(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies) argument 153 if (cMillies == RT_INDEFINITE_WAIT) 160 else if (!cMillies) 186 } while (RTTimeSystemMilliTS() - StartTS < cMillies); 193 RTSemMutexRequestNoResumeDebug(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL) argument [all...] |
/vbox/src/VBox/Runtime/r3/posix/ |
H A D | thread2-posix.cpp | 55 RTDECL(int) RTThreadSleep(RTMSINTERVAL cMillies) argument 57 LogFlow(("RTThreadSleep: cMillies=%d\n", cMillies)); 58 if (!cMillies) 71 LogFlow(("RTThreadSleep: returning %Rrc (cMillies=%d)\n", VINF_SUCCESS, cMillies)); 80 ts.tv_nsec = (cMillies % 1000) * 1000000; 81 ts.tv_sec = cMillies / 1000; 84 LogFlow(("RTThreadSleep: returning %Rrc (cMillies=%d)\n", VINF_SUCCESS, cMillies)); 95 RTThreadSleepNoLog(RTMSINTERVAL cMillies) argument [all...] |
/vbox/src/VBox/Runtime/r0drv/linux/ |
H A D | thread-r0drv-linux.c | 60 static int rtR0ThreadLnxSleepCommon(RTMSINTERVAL cMillies) argument 62 long cJiffies = msecs_to_jiffies(cMillies); 71 RTDECL(int) RTThreadSleep(RTMSINTERVAL cMillies) argument 73 return rtR0ThreadLnxSleepCommon(cMillies); 78 RTDECL(int) RTThreadSleepNoLog(RTMSINTERVAL cMillies) argument 80 return rtR0ThreadLnxSleepCommon(cMillies);
|
/vbox/src/VBox/Runtime/r0drv/solaris/ |
H A D | thread-r0drv-solaris.c | 52 static int rtR0ThreadSolSleepCommon(RTMSINTERVAL cMillies) argument 57 if (!cMillies) 63 if (cMillies != RT_INDEFINITE_WAIT) 64 cTicks = drv_usectohz((clock_t)(cMillies * 1000L)); 73 RTDECL(int) RTThreadSleep(RTMSINTERVAL cMillies) argument 75 return rtR0ThreadSolSleepCommon(cMillies); 79 RTDECL(int) RTThreadSleepNoLog(RTMSINTERVAL cMillies) argument 81 return rtR0ThreadSolSleepCommon(cMillies);
|
/vbox/src/VBox/Main/include/ |
H A D | HostHardwareLinux.h | 119 virtual int Wait(RTMSINTERVAL cMillies) = 0; 153 * @param cMillies How long to wait for at most. 155 int Wait (RTMSINTERVAL cMillies) argument 157 return mImpl->Wait(cMillies);
|
/vbox/src/VBox/Main/src-client/ |
H A D | VirtualBoxClientImpl.cpp | 228 RTMSINTERVAL cMillies = VBOXCLIENT_DEFAULT_INTERVAL; local 232 vrc = RTSemEventWait(sem, cMillies / 2); 269 cMillies = 3 * VBOXCLIENT_DEFAULT_INTERVAL; 280 cMillies = VBOXCLIENT_DEFAULT_INTERVAL; 284 vrc = RTSemEventWait(sem, cMillies);
|
/vbox/src/VBox/Runtime/r0drv/nt/ |
H A D | semmutex-r0drv-nt.cpp | 117 * @param cMillies The timeout. 122 static int rtSemMutexRequest(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies, BOOLEAN fInterruptible) argument 135 AssertMsg(cMillies == RT_INDEFINITE_WAIT, ("timeouts are not supported when using fast mutexes!\n")); 139 if (cMillies == RT_INDEFINITE_WAIT) 144 Timeout.QuadPart = -(int64_t)cMillies * 10000; 172 RTDECL(int) RTSemMutexRequest(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies) argument 174 return rtSemMutexRequest(hMutexSem, cMillies, FALSE /*fInterruptible*/); 178 RTDECL(int) RTSemMutexRequestDebug(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL) argument 180 return RTSemMutexRequest(hMutexSem, cMillies); 184 RTDECL(int) RTSemMutexRequestNoResume(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies) argument 190 RTSemMutexRequestNoResumeDebug(RTSEMMUTEX hMutexSem, RTMSINTERVAL cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL) argument [all...] |
/vbox/src/VBox/Runtime/r0drv/os2/ |
H A D | thread-r0drv-os2.cpp | 62 static int rtR0ThreadOs2SleepCommon(RTMSINTERVAL cMillies) argument 65 cMillies == RT_INDEFINITE_WAIT ? SEM_INDEFINITE_WAIT : cMillies, 82 RTDECL(int) RTThreadSleep(RTMSINTERVAL cMillies) argument 84 return rtR0ThreadOs2SleepCommon(cMillies); 88 RTDECL(int) RTThreadSleepNoBlock(RTMSINTERVAL cMillies) argument 90 return rtR0ThreadOs2SleepCommon(cMillies);
|
/vbox/src/VBox/Debugger/ |
H A D | DBGCTcp.cpp | 71 * @param cMillies Number of milliseconds to wait on input data. 73 static DECLCALLBACK(bool) dbgcTcpBackInput(PDBGCBACK pBack, uint32_t cMillies) argument 78 int rc = RTTcpSelectOne(pDbgcTcp->Sock, cMillies);
|
/vbox/src/VBox/Main/src-server/ |
H A D | ClientWatcher.cpp | 549 RTMSINTERVAL cMillies; local 558 cMillies = s_aUpdateTimeoutSteps[uOld]; 561 int rc = RTSemEventWait(that->mUpdateReq, cMillies); 712 RTMSINTERVAL cMillies; local 721 cMillies = s_aUpdateTimeoutSteps[uOld]; 724 int rc = RTSemEventWait(that->mUpdateReq, cMillies);
|