儲存庫 vbox 的更動 18188
- 時間撮記:
- 2009-3-24 下午02:38:09 (16 年 以前)
- 位置:
- trunk
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/include/iprt/log.h
r13832 r18188 1203 1203 1204 1204 /** 1205 * Gets the default logger instance .1205 * Gets the default logger instance, creating it if necessary. 1206 1206 * 1207 1207 * @returns Pointer to default logger instance. … … 1209 1209 */ 1210 1210 RTDECL(PRTLOGGER) RTLogDefaultInstance(void); 1211 1212 /** 1213 * Gets the default logger instance. 1214 * 1215 * @returns Pointer to default logger instance. 1216 * @returns NULL if no default logger instance available. 1217 */ 1218 RTDECL(PRTLOGGER) RTLogGetDefaultInstance(void); 1211 1219 1212 1220 #ifndef IN_RC -
trunk/src/VBox/Runtime/common/log/log.cpp
r17416 r18188 1395 1395 1396 1396 /** 1397 * Gets the default logger instance .1397 * Gets the default logger instance, creating it if necessary. 1398 1398 * 1399 1399 * @returns Pointer to default logger instance. … … 1427 1427 return g_pLogger; 1428 1428 #endif /* !IN_RC */ 1429 } 1430 1431 1432 /** 1433 * Gets the default logger instance. 1434 * 1435 * @returns Pointer to default logger instance. 1436 * @returns NULL if no default logger instance available. 1437 */ 1438 RTDECL(PRTLOGGER) RTLogGetDefaultInstance(void) 1439 { 1440 #ifdef IN_RC 1441 return &g_Logger; 1442 #else 1443 # ifdef IN_RING0 1444 /* 1445 * Check per thread loggers first. 1446 */ 1447 if (g_cPerThreadLoggers) 1448 { 1449 const RTNATIVETHREAD Self = RTThreadNativeSelf(); 1450 int32_t i = RT_ELEMENTS(g_aPerThreadLoggers); 1451 while (i-- > 0) 1452 if (g_aPerThreadLoggers[i].NativeThread == Self) 1453 return g_aPerThreadLoggers[i].pLogger; 1454 } 1455 # endif /* IN_RING0 */ 1456 1457 return g_pLogger; 1458 #endif 1429 1459 } 1430 1460
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器