Changeset 22691 in vbox for trunk/src/libs/xpcom18a4/python
- Timestamp:
- Sep 2, 2009 1:50:13 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/python/src/module/_xpcom.cpp
r22689 r22691 496 496 static nsIEventQueue* g_mainEventQ = nsnull; 497 497 498 // Wrapper that checks if the queue has pending events. 499 DECLINLINE(bool) 500 hasEventQueuePendingEvents(nsIEventQueue *pQueue) 501 { 502 PRBool fHasEvents = PR_FALSE; 503 nsresult rc = pQueue->PendingEvents(&fHasEvents); 504 return NS_SUCCEEDED(rc) && fHasEvents ? true : false; 505 } 506 507 // Wrapper that checks if the queue is native or not. 508 DECLINLINE(bool) 509 isEventQueueNative(nsIEventQueue *pQueue) 510 { 511 PRBool fIsNative = PR_FALSE; 512 nsresult rc = pQueue->IsQueueNative(&fIsNative); 513 return NS_SUCCEEDED(rc) && fIsNative ? true : false; 514 } 515 498 516 # ifdef RT_OS_DARWIN 499 517 # include <iprt/time.h> … … 504 522 # include <CarbonEvents.h> 505 523 # endif 506 507 // Wrapper that checks if the queue has pending events.508 DECLINLINE(bool)509 hasEventQueuePendingEvents(nsIEventQueue *pQueue)510 {511 PRBool fHasEvents = PR_FALSE;512 nsresult rc = pQueue->PendingEvents(&fHasEvents);513 return NS_SUCCEEDED(rc) && fHasEvents ? true : false;514 }515 516 // Wrapper that checks if the queue has pending events.517 DECLINLINE(bool)518 isEventQueueNative(nsIEventQueue *pQueue)519 {520 PRBool fIsNative = PR_FALSE;521 nsresult rc = pQueue->IsQueueNative(&fIsNative);522 return NS_SUCCEEDED(rc) && fIsNative ? true : false;523 }524 525 524 526 525 // Common fallback for waiting (and maybe processing) events. Caller process
Note:
See TracChangeset
for help on using the changeset viewer.