VirtualBox

Changeset 19185 in vbox for trunk/src/VBox/Runtime/r3/linux


Ignore:
Timestamp:
Apr 26, 2009 9:04:33 AM (16 years ago)
Author:
vboxsync
Message:

Runtime/Aio: Slight changes to the API for Windows. Fix the Solaris backend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/linux/fileaio-linux.cpp

    r19126 r19185  
    458458        *phAioCtx = (RTFILEAIOCTX)pCtxInt;
    459459    }
     460    else
     461        RTMemFree(pCtxInt);
    460462
    461463    return rc;
     
    500502}
    501503
    502 
    503 RTDECL(int) RTFileAioCtxSubmit(RTFILEAIOCTX hAioCtx, PRTFILEAIOREQ pahReqs, size_t cReqs)
     504RTDECL(int) RTFileAioCtxAssociateWithFile(RTFILEAIOCTS hAioCtx, RTFILE hFile)
     505{
     506    /* Nothing to do. */
     507    return VINF_SUCCESS;
     508}
     509
     510RTDECL(int) RTFileAioCtxSubmit(RTFILEAIOCTX hAioCtx, PRTFILEAIOREQ pahReqs, size_t cReqs, size_t *pcReqs)
    504511{
    505512    /*
    506513     * Parameter validation.
    507514     */
     515    AssertPtrReturn(pcReqs, VERR_INVALID_POINTER);
     516    *pcReqs = 0;
    508517    PRTFILEAIOCTXINTERNAL pCtxInt = hAioCtx;
    509518    RTFILEAIOCTX_VALID_RETURN(pCtxInt);
     
    539548    if (RT_FAILURE(rc))
    540549        ASMAtomicSubS32(&pCtxInt->cRequests, cReqs);
     550    else
     551        *pcReqs = cReqs;
    541552
    542553    return rc;
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