VirtualBox

Changeset 36043 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Feb 21, 2011 5:04:14 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70153
Message:

sha1WaitForManifestThreadFinished: Read once instead of 4x.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/ApplianceImplIO.cpp

    r36015 r36043  
    629629    {
    630630//        RTPrintf(" wait\n");
    631         if (!(   ASMAtomicReadU32(&pInt->u32Status) == STATUS_WRITE
    632               || ASMAtomicReadU32(&pInt->u32Status) == STATUS_WRITING
    633               || ASMAtomicReadU32(&pInt->u32Status) == STATUS_READ
    634               || ASMAtomicReadU32(&pInt->u32Status) == STATUS_READING))
     631        uint32_t u32Status = ASMAtomicReadU32(&pInt->u32Status);
     632        if (!(   u32Status == STATUS_WRITE
     633              || u32Status == STATUS_WRITING
     634              || u32Status == STATUS_READ
     635              || u32Status == STATUS_READING))
    635636            break;
    636637        rc = RTSemEventWait(pInt->workFinishedEvent, 100);
Note: See TracChangeset for help on using the changeset viewer.

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