VirtualBox

Changeset 22967 in vbox


Ignore:
Timestamp:
Sep 11, 2009 10:41:38 PM (15 years ago)
Author:
vboxsync
Message:

PDMAsyncCompletion: Bug fixes

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMAsyncCompletionFile.cpp

    r22757 r22967  
    221221
    222222    ASMAtomicWriteU32((volatile uint32_t *)&pAioMgr->enmBlockingEvent, enmEvent);
     223    Assert(!pAioMgr->fBlockingEventPending);
    223224    ASMAtomicXchgBool(&pAioMgr->fBlockingEventPending, true);
    224225
  • trunk/src/VBox/VMM/PDMAsyncCompletionFileNormal.cpp

    r22851 r22967  
    445445                {
    446446                    pAioMgr->cRequestsActive += cRequests;
     447                    pEndpoint->AioMgr.cRequestsActive += cRequests;
    447448                    rc = RTFileAioCtxSubmit(pAioMgr->hAioCtx, apReqs, cRequests);
    448449                    if (RT_FAILURE(rc))
     
    464465    {
    465466        pAioMgr->cRequestsActive += cRequests;
     467        pEndpoint->AioMgr.cRequestsActive += cRequests;
    466468        rc = RTFileAioCtxSubmit(pAioMgr->hAioCtx, apReqs, cRequests);
    467469        AssertMsgReturn(RT_SUCCESS(rc), ("Could not submit %u requests %Rrc\n", cRequests, rc), rc);
     
    626628
    627629        /* Release the waiting thread. */
     630        LogFlow(("Signalling waiter\n"));
    628631        rc = RTSemEventSignal(pAioMgr->EventSemBlock);
    629632        AssertRC(rc);
     
    764767
    765768                        pAioMgr->cRequestsActive--;
     769                        pEndpoint->AioMgr.cRequestsActive--;
    766770                        pEndpoint->AioMgr.cReqsProcessed++;
    767771
     
    815819
    816820                            /* Release the waiting thread. */
     821                            LogFlow(("Signalling waiter\n"));
    817822                            rc = RTSemEventSignal(pAioMgr->EventSemBlock);
    818823                            AssertRC(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