Changeset 25812 in vbox for trunk/src/VBox/Main/glue
- Timestamp:
- Jan 13, 2010 5:18:52 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56585
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/initterm.cpp
r25809 r25812 246 246 { 247 247 HRESULT rc = E_FAIL; 248 249 RTTHREAD hSelf = RTThreadSelf();250 bool fIsMainThread = RTThreadIsMain(hSelf);251 248 252 249 #if !defined (VBOX_WITH_XPCOM) … … 336 333 * counting, so this exercise is entirely for the EventQueue init. */ 337 334 bool fRc; 335 RTTHREAD hSelf = RTThreadSelf (); 338 336 if (hSelf != NIL_RTTHREAD) 339 337 ASMAtomicCmpXchgHandle (&gCOMMainThread, hSelf, NIL_RTTHREAD, fRc); … … 349 347 return rc; 350 348 } 351 Assert (fIsMainThread);349 Assert (RTThreadIsMain (hSelf)); 352 350 353 351 /* this is the first main thread initialization */ … … 380 378 return rc; 381 379 } 382 Assert (fIsMainThread);380 Assert (RTThreadIsMain (RTThreadSelf())); 383 381 384 382 /* this is the first initialization */
Note:
See TracChangeset
for help on using the changeset viewer.