vbox的更動 61714 路徑 trunk/src/VBox/Main
- 時間撮記:
- 2016-6-15 下午01:16:38 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/src-server/xpcom/server.cpp
r61196 r61714 5 5 6 6 /* 7 * Copyright (C) 2004-201 5Oracle Corporation7 * Copyright (C) 2004-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 211 211 class MaybeQuitEvent : public NativeEvent 212 212 { 213 public: 214 MaybeQuitEvent() : 215 m_fSignal(false) 216 { 217 } 218 219 MaybeQuitEvent(bool fSignal) : 220 m_fSignal(fSignal) 221 { 222 } 223 224 private: 213 225 /* called on the main thread */ 214 226 void *handler() … … 234 246 if (count == 0) 235 247 { 236 if (gAutoShutdown )248 if (gAutoShutdown || m_fSignal) 237 249 { 238 250 Assert(sInstance == NULL); … … 257 269 return NULL; 258 270 } 271 272 bool m_fSignal; 259 273 }; 260 274 … … 272 286 273 287 /* post a quit event to the main queue */ 274 MaybeQuitEvent *ev = new MaybeQuitEvent( );288 MaybeQuitEvent *ev = new MaybeQuitEvent(false /* fSignal */); 275 289 if (!q->postEvent(ev)) 276 290 delete ev; … … 516 530 if (gAllowSigUsrQuit) 517 531 { 518 VirtualBoxClassFactory::MaybeQuitEvent *ev = new VirtualBoxClassFactory::MaybeQuitEvent(); 532 /* terminate the server process if it is idle */ 533 VirtualBoxClassFactory::MaybeQuitEvent *ev = new VirtualBoxClassFactory::MaybeQuitEvent(true /* fSignal */); 519 534 if (!q->postEvent(ev)) 520 535 delete ev;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器