VirtualBox

Changeset 46439 in vbox for trunk


Ignore:
Timestamp:
Jun 7, 2013 12:12:38 PM (12 years ago)
Author:
vboxsync
Message:

pow(grr, 2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/STAM.cpp

    r46438 r46439  
    4848*   Header Files                                                               *
    4949*******************************************************************************/
    50 /*#define USE_PDMCRITSECTRW - testing, not for production. */
    5150#define LOG_GROUP LOG_GROUP_STAM
    5251#include <VBox/vmm/stam.h>
     
    264263VMMR3DECL(int) STAMR3InitUVM(PUVM pUVM)
    265264{
    266     int rc;
    267265    LogFlow(("STAMR3Init\n"));
    268266
     
    276274     * Initialize the read/write lock.
    277275     */
    278     rc = RTSemRWCreate(&pUVM->stam.s.RWSem);
     276    int rc = RTSemRWCreate(&pUVM->stam.s.RWSem);
    279277    AssertRCReturn(rc, rc);
    280278
     
    600598                           STAMTYPE enmType, STAMVISIBILITY enmVisibility, const char *pszName, STAMUNIT enmUnit, const char *pszDesc)
    601599{
    602     STAM_LAZY_INIT(pUVM);
    603600    STAM_LOCK_WR(pUVM);
    604601
     
    616613#else
    617614    PSTAMDESC   pPrev = NULL;
    618     PSTAMDESC   pCur  = pUVM->stam.s.pHint;
     615    PSTAMDESC   pCur  = pUVM->stam.s.pHead;
    619616#endif
    620617    while (pCur)
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