VirtualBox

Changeset 65201 in vbox for trunk/src


Ignore:
Timestamp:
Jan 9, 2017 12:39:39 PM (8 years ago)
Author:
vboxsync
Message:

Main/PerformanceImpl: Invalidate the magic after the timer was destroyed or we risk running into the assertion when the timer kicks in between destroying the magic and destroying the timer which is quite annoying

File:
1 edited

Legend:

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

    r63563 r65201  
    222222    }
    223223
    224     mMagic = 0;
    225 
    226224    /* Destroy unregistered metrics */
    227225    BaseMetricList::iterator it;
     
    246244    AssertMsgRC(vrc, ("Failed to destroy resource usage sampling timer (%Rra)\n", vrc));
    247245    m.sampler = NULL;
     246
     247    /* Invalidate the magic now. */
     248    mMagic = 0;
    248249
    249250    //delete m.factory;
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