Changeset 30135 in vbox for trunk/src/libs/xpcom18a4/xpcom/threads/plevent.c
- Timestamp:
- Jun 9, 2010 6:28:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/threads/plevent.c
r26449 r30135 171 171 CFRunLoopSourceRef mRunLoopSource; 172 172 CFRunLoopRef mMainRunLoop; 173 CFStringRef mRunLoopModeStr; /* vbox */ 173 174 #elif defined(MAC_USE_CARBON_EVENT) 174 175 EventHandlerUPP eventHandlerUPP; … … 946 947 947 948 CFRunLoopRemoveSource(self->mMainRunLoop, self->mRunLoopSource, kCFRunLoopCommonModes); 949 CFRunLoopRemoveSource(self->mMainRunLoop, self->mRunLoopSource, self->mRunLoopModeStr); /* vbox */ 948 950 CFRelease(self->mRunLoopSource); 949 951 CFRelease(self->mMainRunLoop); 952 CFRelease(self->mRunLoopModeStr); /* vbox */ 950 953 951 954 #elif defined(MAC_USE_CARBON_EVENT) … … 1335 1338 return PR_SUCCESS; 1336 1339 return PR_FAILURE; 1340 #elif defined(MAC_USE_CFRUNLOOPSOURCE) /* vbox */ 1341 /* vbox */ 1342 CFRunLoopRunInMode(self->mRunLoopModeStr, 0.0, 1); /* vbox */ 1343 return PR_SUCCESS; /* vbox */ 1337 1344 #else 1338 1345 … … 1637 1644 CFRunLoopAddSource(eventQueue->mMainRunLoop, eventQueue->mRunLoopSource, kCFRunLoopCommonModes); 1638 1645 1646 /* Add it again but with a unique mode name so we can acknowledge it 1647 without processing any other message sources. */ 1648 { /* vbox */ 1649 char szModeName[80]; /* vbox */ 1650 snprintf(szModeName, sizeof(szModeName), "VBoxXPCOMQueueMode-%p", eventQueue); /* vbox */ 1651 eventQueue->mRunLoopModeStr = CFStringCreateWithCString(kCFAllocatorDefault, /* vbox */ 1652 szModeName, kCFStringEncodingASCII); /* vbox */ 1653 CFRunLoopAddSource(eventQueue->mMainRunLoop, /* vbox */ 1654 eventQueue->mRunLoopSource, eventQueue->mRunLoopModeStr); /* vbox */ 1655 } /* vbox */ 1656 1639 1657 #elif defined(MAC_USE_CARBON_EVENT) 1640 1658 eventQueue->eventHandlerUPP = NewEventHandlerUPP(_md_EventReceiverProc);
Note:
See TracChangeset
for help on using the changeset viewer.