VirtualBox

Changeset 23713 in vbox


Ignore:
Timestamp:
Oct 12, 2009 8:53:50 PM (15 years ago)
Author:
vboxsync
Message:

Async Completion: bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstPDMAsyncCompletionStress.cpp

    r23677 r23713  
    273273    /* Allocate data buffer. */
    274274    pTestTask->DataSeg.pvSeg = RTMemAlloc(pTestTask->DataSeg.cbSeg);
    275     if (pTestTask->DataSeg.pvSeg)
     275    if (!pTestTask->DataSeg.pvSeg)
    276276        return VERR_NO_MEMORY;
    277277
     
    305305    uint32_t cTasksStarted = 0;
    306306    int rc = VINF_SUCCESS;
     307
     308    if (pThread->enmState == PDMTHREADSTATE_INITIALIZING)
     309        return VINF_SUCCESS;
    307310
    308311    while (pTestFile->fRunning)
     
    452455                        if (RT_SUCCESS(rc))
    453456                        {
     457                            rc = PDMR3ThreadResume(pTestFile->hThread);
     458                            AssertRC(rc);
     459
    454460                            RTPrintf(TESTCASE ": Created test file %s cbFileMax=%llu cbFileSegment=%u cSegments=%u cTasksActiveMax=%u\n",
    455461                                     szFile, pTestFile->cbFileMax, pTestFile->cbFileSegment, pTestFile->cSegments, pTestFile->cTasksActiveMax);
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