- Timestamp:
- Mar 25, 2019 5:16:23 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/darwin/HostDnsServiceDarwin.cpp
r77666 r77872 20 20 21 21 22 #include <iprt/asm.h> 22 23 #include <iprt/errcore.h> 23 24 #include <iprt/thread.h> … … 41 42 CFRunLoopRef m_RunLoopRef; 42 43 CFRunLoopSourceRef m_Stopper; 43 bool m_fStop;44 volatile bool m_fStop; 44 45 RTSEMEVENT m_evtStop; 45 46 static void performShutdownCallback(void *); … … 122 123 if (!m->m_fStop) 123 124 { 125 ASMAtomicXchgBool(&m->m_fStop, true); 124 126 CFRunLoopSourceSignal(m->m_Stopper); 125 CFRunLoop WakeUp(m->m_RunLoopRef);127 CFRunLoopStop(m->m_RunLoopRef); 126 128 127 129 RTSemEventWait(m->m_evtStop, RT_INDEFINITE_WAIT); … … 153 155 monitorThreadInitializationDone(); 154 156 155 while (! m->m_fStop)157 while (!ASMAtomicReadBool(&m->m_fStop)) 156 158 { 157 159 CFRunLoopRun();
Note:
See TracChangeset
for help on using the changeset viewer.