Changeset 35640 in vbox for trunk/src/VBox/Main/glue
- Timestamp:
- Jan 19, 2011 8:44:02 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 69548
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/initterm.cpp
r35638 r35640 253 253 #if !defined(VBOX_WITH_XPCOM) 254 254 255 /* *256 257 258 259 * GUI thread to COM objects, we explicitly provide our COM objects260 * with free threaded marshaller.261 * !!!!! Please think twice before touching this code !!!!!262 263 DWORD flags = fGui ? 255 /* 256 * We initialize COM in GUI thread in STA, to be compliant with QT and 257 * OLE requirments (for example to allow D&D), while other threads 258 * initialized in regular MTA. To allow fast proxyless access from 259 * GUI thread to COM objects, we explicitly provide our COM objects 260 * with free threaded marshaller. 261 * !!!!! Please think twice before touching this code !!!!! 262 */ 263 DWORD flags = fGui ? 264 264 COINIT_APARTMENTTHREADED 265 265 | COINIT_SPEED_OVER_MEMORY … … 287 287 288 288 if (fGui) 289 289 Assert(RTThreadIsMain(hSelf)); 290 290 291 291 if (!fRc) … … 307 307 #else /* !defined (VBOX_WITH_XPCOM) */ 308 308 309 310 (void)fGui;309 /* Unused here */ 310 NOREF(fGui); 311 311 312 312 if (ASMAtomicXchgBool(&gIsXPCOMInitialized, true) == true)
Note:
See TracChangeset
for help on using the changeset viewer.