vbox的更動 21890 路徑 trunk/src/VBox/Runtime/r3/init.cpp
- 時間撮記:
- 2009-7-30 下午02:22:17 (15 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/r3/init.cpp
r20911 r21890 124 124 125 125 126 /** 127 * atexit callback. 128 * 129 * This makes sure any loggers are flushed and will later also work the 130 * termination callback chain. 131 */ 132 static void rtR3ExitCallback(void) 133 { 134 if (g_cUsers > 0) 135 { 136 PRTLOGGER pLogger = RTLogGetDefaultInstance(); 137 if (pLogger) 138 RTLogFlush(pLogger); 139 140 pLogger = RTLogRelDefaultInstance(); 141 if (pLogger) 142 RTLogFlush(pLogger); 143 } 144 } 145 126 146 127 147 #ifndef RT_OS_WINDOWS … … 269 289 setlocale(LC_CTYPE, ""); 270 290 271 /* Fork callbacks. */291 /* Fork and exit callbacks. */ 272 292 #if !defined(RT_OS_WINDOWS) && !defined(RT_OS_OS2) 273 293 rc = pthread_atfork(NULL, NULL, rtR3ForkChildCallback); 274 294 AssertMsg(rc == 0, ("%d\n", rc)); 275 295 #endif 296 atexit(rtR3ExitCallback); 276 297 277 298 #ifdef IPRT_WITH_ALIGNMENT_CHECKS
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器