Changeset 77995 in vbox
- Timestamp:
- Apr 3, 2019 3:29:37 PM (6 years ago)
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostDnsService.h
r77993 r77995 139 139 { 140 140 public: 141 141 142 HostDnsServiceDarwin(); 142 143 virtual ~HostDnsServiceDarwin(); … … 243 244 HRESULT init(HostDnsMonitorProxy *pProxy); 244 245 void uninit(void); 246 245 247 protected: 246 248 -
trunk/src/VBox/Main/src-server/darwin/HostDnsServiceDarwin.cpp
r77993 r77995 58 58 } 59 59 60 61 60 HostDnsServiceDarwin::~HostDnsServiceDarwin() 62 61 { 63 if (!m) 64 return; 65 66 monitorThreadShutdown(); 67 68 CFRelease(m->m_RunLoopRef); 69 70 CFRelease(m->m_DnsWatcher); 71 72 CFRelease(m->m_store); 73 74 RTSemEventDestroy(m->m_evtStop); 75 76 delete m; 77 m = NULL; 78 } 79 62 if (m != NULL) 63 delete m; 64 } 80 65 81 66 void HostDnsServiceDarwin::hostDnsServiceStoreCallback(void *, void *, void *info) … … 119 104 } 120 105 121 122 void HostDnsServiceDarwin::monitorThreadShutdown(void) 106 void HostDnsServiceDarwin::uninit(void) 107 { 108 CFRelease(m->m_RunLoopRef); 109 110 CFRelease(m->m_DnsWatcher); 111 112 CFRelease(m->m_store); 113 114 RTSemEventDestroy(m->m_evtStop); 115 116 HostDnsServiceBase::uninit(); 117 } 118 119 void HostDnsServiceDarwin::monitorThreadShutdown(RTMSINTERVAL uTimeoutMs) 123 120 { 124 121 RTCLock grab(m_LockMtx); … … 129 126 CFRunLoopStop(m->m_RunLoopRef); 130 127 131 RTSemEventWait(m->m_evtStop, RT_INDEFINITE_WAIT); 132 } 133 } 134 128 RTSemEventWait(m->m_evtStop, uTimeoutMs); 129 } 130 } 135 131 136 132 int HostDnsServiceDarwin::monitorThreadProc(void)
Note:
See TracChangeset
for help on using the changeset viewer.