VirtualBox

Changeset 25812 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Jan 13, 2010 5:18:52 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56585
Message:

Main: back out r56580 partially which broke VirtualBox startup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/initterm.cpp

    r25809 r25812  
    246246{
    247247    HRESULT rc = E_FAIL;
    248 
    249     RTTHREAD hSelf = RTThreadSelf();
    250     bool fIsMainThread = RTThreadIsMain(hSelf);
    251248
    252249#if !defined (VBOX_WITH_XPCOM)
     
    336333     *       counting, so this exercise is entirely for the EventQueue init. */
    337334    bool fRc;
     335    RTTHREAD hSelf = RTThreadSelf ();
    338336    if (hSelf != NIL_RTTHREAD)
    339337        ASMAtomicCmpXchgHandle (&gCOMMainThread, hSelf, NIL_RTTHREAD, fRc);
     
    349347        return rc;
    350348    }
    351     Assert(fIsMainThread);
     349    Assert (RTThreadIsMain (hSelf));
    352350
    353351    /* this is the first main thread initialization */
     
    380378        return rc;
    381379    }
    382     Assert(fIsMainThread);
     380    Assert (RTThreadIsMain (RTThreadSelf()));
    383381
    384382    /* this is the first initialization */
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