Changeset 25724 in vbox for trunk/src/VBox/Runtime/common/misc
- Timestamp:
- Jan 11, 2010 2:45:34 PM (15 years ago)
- Location:
- trunk/src/VBox/Runtime/common/misc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/req.cpp
r24468 r25724 109 109 * Use RT_INDEFINITE_WAIT to only wait till one is added. 110 110 */ 111 RTDECL(int) RTReqProcess(PRTREQQUEUE pQueue, unsignedcMillies)111 RTDECL(int) RTReqProcess(PRTREQQUEUE pQueue, RTMSINTERVAL cMillies) 112 112 { 113 113 LogFlow(("RTReqProcess %x\n", pQueue)); … … 211 211 * @remarks See remarks on RTReqCallV. 212 212 */ 213 RTDECL(int) RTReqCall(PRTREQQUEUE pQueue, PRTREQ *ppReq, unsignedcMillies, PFNRT pfnFunction, unsigned cArgs, ...)213 RTDECL(int) RTReqCall(PRTREQQUEUE pQueue, PRTREQ *ppReq, RTMSINTERVAL cMillies, PFNRT pfnFunction, unsigned cArgs, ...) 214 214 { 215 215 va_list va; … … 246 246 * @remarks See remarks on RTReqCallV. 247 247 */ 248 RTDECL(int) RTReqCallVoid(PRTREQQUEUE pQueue, PRTREQ *ppReq, unsignedcMillies, PFNRT pfnFunction, unsigned cArgs, ...)248 RTDECL(int) RTReqCallVoid(PRTREQQUEUE pQueue, PRTREQ *ppReq, RTMSINTERVAL cMillies, PFNRT pfnFunction, unsigned cArgs, ...) 249 249 { 250 250 va_list va; … … 283 283 * @remarks See remarks on RTReqCallV. 284 284 */ 285 RTDECL(int) RTReqCallEx(PRTREQQUEUE pQueue, PRTREQ *ppReq, unsignedcMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...)285 RTDECL(int) RTReqCallEx(PRTREQQUEUE pQueue, PRTREQ *ppReq, RTMSINTERVAL cMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...) 286 286 { 287 287 va_list va; … … 327 327 * Use (void *)NULL or (uintptr_t)0 instead of NULL. 328 328 */ 329 RTDECL(int) RTReqCallV(PRTREQQUEUE pQueue, PRTREQ *ppReq, unsignedcMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, va_list Args)329 RTDECL(int) RTReqCallV(PRTREQQUEUE pQueue, PRTREQ *ppReq, RTMSINTERVAL cMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, va_list Args) 330 330 { 331 331 LogFlow(("RTReqCallV: cMillies=%d fFlags=%#x pfnFunction=%p cArgs=%d\n", cMillies, fFlags, pfnFunction, cArgs)); … … 656 656 * wait till it's completed. 657 657 */ 658 RTDECL(int) RTReqQueue(PRTREQ pReq, unsignedcMillies)658 RTDECL(int) RTReqQueue(PRTREQ pReq, RTMSINTERVAL cMillies) 659 659 { 660 660 LogFlow(("RTReqQueue: pReq=%p cMillies=%d\n", pReq, cMillies)); … … 724 724 * Use RT_INDEFINITE_WAIT to only wait till it's completed. 725 725 */ 726 RTDECL(int) RTReqWait(PRTREQ pReq, unsignedcMillies)726 RTDECL(int) RTReqWait(PRTREQ pReq, RTMSINTERVAL cMillies) 727 727 { 728 728 LogFlow(("RTReqWait: pReq=%p cMillies=%d\n", pReq, cMillies)); -
trunk/src/VBox/Runtime/common/misc/semspingpong.cpp
r21337 r25724 197 197 * @param cMillies Number of milliseconds to wait. 198 198 */ 199 RTDECL(int) RTSemPingWait(PRTPINGPONG pPP, unsignedcMillies)199 RTDECL(int) RTSemPingWait(PRTPINGPONG pPP, RTMSINTERVAL cMillies) 200 200 { 201 201 /* … … 230 230 * @param cMillies Number of milliseconds to wait. 231 231 */ 232 RTDECL(int) RTSemPongWait(PRTPINGPONG pPP, unsignedcMillies)232 RTDECL(int) RTSemPongWait(PRTPINGPONG pPP, RTMSINTERVAL cMillies) 233 233 { 234 234 /* -
trunk/src/VBox/Runtime/common/misc/thread.cpp
r25690 r25724 994 994 * an indefinite wait. 995 995 */ 996 RTDECL(int) RTThreadUserWait(RTTHREAD Thread, unsignedcMillies)996 RTDECL(int) RTThreadUserWait(RTTHREAD Thread, RTMSINTERVAL cMillies) 997 997 { 998 998 int rc; … … 1018 1018 * an indefinite wait. 1019 1019 */ 1020 RTDECL(int) RTThreadUserWaitNoResume(RTTHREAD Thread, unsignedcMillies)1020 RTDECL(int) RTThreadUserWaitNoResume(RTTHREAD Thread, RTMSINTERVAL cMillies) 1021 1021 { 1022 1022 int rc; … … 1066 1066 * @param fAutoResume Whether or not to resume the wait on VERR_INTERRUPTED. 1067 1067 */ 1068 static int rtThreadWait(RTTHREAD Thread, unsignedcMillies, int *prc, bool fAutoResume)1068 static int rtThreadWait(RTTHREAD Thread, RTMSINTERVAL cMillies, int *prc, bool fAutoResume) 1069 1069 { 1070 1070 int rc = VERR_INVALID_HANDLE; … … 1116 1116 * @param prc Where to store the return code of the thread. Optional. 1117 1117 */ 1118 RTDECL(int) RTThreadWait(RTTHREAD Thread, unsignedcMillies, int *prc)1118 RTDECL(int) RTThreadWait(RTTHREAD Thread, RTMSINTERVAL cMillies, int *prc) 1119 1119 { 1120 1120 int rc = rtThreadWait(Thread, cMillies, prc, true); … … 1134 1134 * @param prc Where to store the return code of the thread. Optional. 1135 1135 */ 1136 RTDECL(int) RTThreadWaitNoResume(RTTHREAD Thread, unsignedcMillies, int *prc)1136 RTDECL(int) RTThreadWaitNoResume(RTTHREAD Thread, RTMSINTERVAL cMillies, int *prc) 1137 1137 { 1138 1138 return rtThreadWait(Thread, cMillies, prc, false);
Note:
See TracChangeset
for help on using the changeset viewer.