VirtualBox

Ignore:
Timestamp:
Jan 11, 2010 2:45:34 PM (15 years ago)
Author:
vboxsync
Message:

iprt: Use RTMSINTERVAL for timeouts. Fixed missing timeout underflow checks in two RTFileAioCtxWait implementations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/req.cpp

    r24468 r25724  
    109109 *                          Use RT_INDEFINITE_WAIT to only wait till one is added.
    110110 */
    111 RTDECL(int) RTReqProcess(PRTREQQUEUE pQueue, unsigned cMillies)
     111RTDECL(int) RTReqProcess(PRTREQQUEUE pQueue, RTMSINTERVAL cMillies)
    112112{
    113113    LogFlow(("RTReqProcess %x\n", pQueue));
     
    211211 * @remarks See remarks on RTReqCallV.
    212212 */
    213 RTDECL(int) RTReqCall(PRTREQQUEUE pQueue, PRTREQ *ppReq, unsigned cMillies, PFNRT pfnFunction, unsigned cArgs, ...)
     213RTDECL(int) RTReqCall(PRTREQQUEUE pQueue, PRTREQ *ppReq, RTMSINTERVAL cMillies, PFNRT pfnFunction, unsigned cArgs, ...)
    214214{
    215215    va_list va;
     
    246246 * @remarks See remarks on RTReqCallV.
    247247 */
    248 RTDECL(int) RTReqCallVoid(PRTREQQUEUE pQueue, PRTREQ *ppReq, unsigned cMillies, PFNRT pfnFunction, unsigned cArgs, ...)
     248RTDECL(int) RTReqCallVoid(PRTREQQUEUE pQueue, PRTREQ *ppReq, RTMSINTERVAL cMillies, PFNRT pfnFunction, unsigned cArgs, ...)
    249249{
    250250    va_list va;
     
    283283 * @remarks See remarks on RTReqCallV.
    284284 */
    285 RTDECL(int) RTReqCallEx(PRTREQQUEUE pQueue, PRTREQ *ppReq, unsigned cMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...)
     285RTDECL(int) RTReqCallEx(PRTREQQUEUE pQueue, PRTREQ *ppReq, RTMSINTERVAL cMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, ...)
    286286{
    287287    va_list va;
     
    327327 *                Use (void *)NULL or (uintptr_t)0 instead of NULL.
    328328 */
    329 RTDECL(int) RTReqCallV(PRTREQQUEUE pQueue, PRTREQ *ppReq, unsigned cMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, va_list Args)
     329RTDECL(int) RTReqCallV(PRTREQQUEUE pQueue, PRTREQ *ppReq, RTMSINTERVAL cMillies, unsigned fFlags, PFNRT pfnFunction, unsigned cArgs, va_list Args)
    330330{
    331331    LogFlow(("RTReqCallV: cMillies=%d fFlags=%#x pfnFunction=%p cArgs=%d\n", cMillies, fFlags, pfnFunction, cArgs));
     
    656656 *                          wait till it's completed.
    657657 */
    658 RTDECL(int) RTReqQueue(PRTREQ pReq, unsigned cMillies)
     658RTDECL(int) RTReqQueue(PRTREQ pReq, RTMSINTERVAL cMillies)
    659659{
    660660    LogFlow(("RTReqQueue: pReq=%p cMillies=%d\n", pReq, cMillies));
     
    724724 *                          Use RT_INDEFINITE_WAIT to only wait till it's completed.
    725725 */
    726 RTDECL(int) RTReqWait(PRTREQ pReq, unsigned cMillies)
     726RTDECL(int) RTReqWait(PRTREQ pReq, RTMSINTERVAL cMillies)
    727727{
    728728    LogFlow(("RTReqWait: pReq=%p cMillies=%d\n", pReq, cMillies));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette