VirtualBox

Changeset 19667 in vbox for trunk


Ignore:
Timestamp:
May 13, 2009 3:49:38 PM (16 years ago)
Author:
vboxsync
Message:

Cleaned up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/MMAllHyper.cpp

    r19666 r19667  
    165165    if (!PDMCritSectIsInitialized(&pHeap->Lock))
    166166        return VINF_SUCCESS;     /* early init */
    167 
    168     int rc = PDMCritSectEnter(&pHeap->Lock, VERR_INTERNAL_ERROR);
    169167#else
    170168    Assert(PDMCritSectIsInitialized(&pHeap->Lock));
    171     int rc = PDMCritSectEnter(&pHeap->Lock, VERR_GENERAL_FAILURE);
    172     if (rc == VERR_GENERAL_FAILURE)
    173     {
    174 # ifdef IN_RC
     169#endif
     170    int rc = PDMCritSectEnter(&pHeap->Lock, VERR_SEM_BUSY);
     171#ifdef IN_RC
     172    if (rc == VERR_SEM_BUSY)
    175173        rc = VMMGCCallHost(pVM, VMMCALLHOST_MMHYPER_LOCK, 0);
    176 # else
     174#elif defined(IN_RING0)
     175    if (rc == VERR_SEM_BUSY)
    177176        rc = VMMR0CallHost(pVM, VMMCALLHOST_MMHYPER_LOCK, 0);
    178 # endif
    179     }
    180177#endif
    181178    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