- Timestamp:
- Apr 3, 2019 3:58:12 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/darwin/HostDnsServiceDarwin.cpp
r77999 r78000 41 41 CFRunLoopSourceRef m_DnsWatcher; 42 42 CFRunLoopRef m_RunLoopRef; 43 CFRunLoopSourceRef m_S topper;43 CFRunLoopSourceRef m_SourceStop; 44 44 volatile bool m_fStop; 45 45 RTSEMEVENT m_evtStop; … … 100 100 sctx.perform = HostDnsServiceDarwin::Data::performShutdownCallback; 101 101 102 m->m_S topper= CFRunLoopSourceCreate(kCFAllocatorDefault, 0, &sctx);103 AssertReturn(m->m_S topper, E_FAIL);104 105 CFRunLoopAddSource(m->m_RunLoopRef, m->m_S topper, kCFRunLoopCommonModes);102 m->m_SourceStop = CFRunLoopSourceCreate(kCFAllocatorDefault, 0, &sctx); 103 AssertReturn(m->m_SourceStop, E_FAIL); 104 105 CFRunLoopAddSource(m->m_RunLoopRef, m->m_SourceStop, kCFRunLoopCommonModes); 106 106 107 107 return updateInfo(); … … 110 110 void HostDnsServiceDarwin::uninit(void) 111 111 { 112 CFRunLoopRemoveSource(m->m_RunLoopRef, m->m_S topper, kCFRunLoopCommonModes);113 CFRelease(m->m_S topper);112 CFRunLoopRemoveSource(m->m_RunLoopRef, m->m_SourceStop, kCFRunLoopCommonModes); 113 CFRelease(m->m_SourceStop); 114 114 115 115 CFRelease(m->m_RunLoopRef); … … 130 130 { 131 131 ASMAtomicXchgBool(&m->m_fStop, true); 132 CFRunLoopSourceSignal(m->m_S topper);132 CFRunLoopSourceSignal(m->m_SourceStop); 133 133 CFRunLoopStop(m->m_RunLoopRef); 134 134
Note:
See TracChangeset
for help on using the changeset viewer.