Changeset 101992 in vbox
- Timestamp:
- Nov 8, 2023 5:37:38 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/threads/nsEventQueueService.cpp
r1 r101992 57 57 #include "nsPIEventQueueChain.h" 58 58 59 #include "prlog.h" 60 61 #if defined(PR_LOGGING) || defined(DEBUG_danm) 62 extern PRLogModuleInfo* gEventQueueLog; 63 extern PRUint32 gEventQueueLogCount; 64 #endif 59 #include <VBox/log.h> 65 60 66 61 static NS_DEFINE_CID(kEventQueueCID, NS_EVENTQUEUE_CID); … … 69 64 { 70 65 mEventQMonitor = PR_NewMonitor(); 71 #if defined(PR_LOGGING) && defined(DEBUG_danm)72 if (!gEventQueueLog)73 gEventQueueLog = PR_NewLogModule("nseventqueue");74 #endif75 66 } 76 67 … … 301 292 *aNewQueue = newQueue; 302 293 303 #if defined(PR_LOGGING) && defined(DEBUG_danm)294 #ifdef LOG_ENABLED 304 295 PLEventQueue *equeue; 305 296 (*aNewQueue)->GetPLEventQueue(&equeue); 306 PR_LOG(gEventQueueLog, PR_LOG_DEBUG, 307 ("EventQueue: Service push queue [queue=%lx]",(long)equeue)); 308 ++gEventQueueLogCount; 297 Log(("EventQueue: Service push queue [queue=%lx]",(long)equeue)); 309 298 #endif 310 299 … … 337 326 return NS_ERROR_FAILURE; 338 327 339 #if defined(PR_LOGGING) && defined(DEBUG_danm)328 #ifdef LOG_ENABLED 340 329 PLEventQueue *equeue; 341 330 aQueue->GetPLEventQueue(&equeue); 342 PR_LOG(gEventQueueLog, PR_LOG_DEBUG, 343 ("EventQueue: Service pop queue [queue=%lx]",(long)equeue)); 344 ++gEventQueueLogCount; 331 Log(("EventQueue: Service pop queue [queue=%lx]",(long)equeue)); 345 332 #endif 346 333 aQueue->StopAcceptingEvents();
Note:
See TracChangeset
for help on using the changeset viewer.