Changeset 77506 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Feb 28, 2019 4:25:19 PM (6 years ago)
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostDnsService.cpp
r76592 r77506 154 154 void HostDnsMonitor::shutdown() 155 155 { 156 /** @todo never called. 157 * HostDnsMonitor should be referenced by HostDnsMonitorProxy objects and the Host object 158 * and automatically deleted when not referenced anymore. 159 * Currently HostDnsMonitor can use already deleted m->virtualbox. 160 */ 156 monitorThreadShutdown(); 157 int rc = RTThreadWait(m->hMonitoringThread, 5000, NULL); 158 AssertRCSuccess(rc); 161 159 } 162 160 … … 179 177 rc = RTThreadCreate(&m->hMonitoringThread, 180 178 HostDnsMonitor::threadMonitoringRoutine, 181 this, 128 * _1K, RTTHREADTYPE_IO, 0, "dns-monitor"); 179 this, 128 * _1K, RTTHREADTYPE_IO, 180 RTTHREADFLAGS_WAITABLE, "dns-monitor"); 182 181 AssertRCReturn(rc, E_FAIL); 183 182 … … 267 266 HostDnsMonitorProxy::~HostDnsMonitorProxy() 268 267 { 269 if (m) 270 { 271 /* XXX: m->monitor */ 272 delete m; 273 m = NULL; 274 } 268 Assert(!m); 275 269 } 276 270 … … 282 276 } 283 277 278 279 void HostDnsMonitorProxy::uninit() 280 { 281 m->monitor->shutdown(); 282 delete m; 283 m = NULL; 284 } 284 285 285 286 void HostDnsMonitorProxy::notify(const HostDnsInformation &info) -
trunk/src/VBox/Main/src-server/HostDnsService.h
r76562 r77506 58 58 public: 59 59 static HostDnsMonitor *createHostDnsMonitor(); 60 staticvoid shutdown();60 void shutdown(); 61 61 62 62 /* @note: method will wait till client call … … 95 95 ~HostDnsMonitorProxy(); 96 96 void init(VirtualBox *virtualbox); 97 void uninit(); 97 98 void notify(const HostDnsInformation &info); 98 99 -
trunk/src/VBox/Main/src-server/HostImpl.cpp
r77436 r77506 498 498 m->llNetIfs.pop_front(); 499 499 } 500 501 m->hostDnsMonitorProxy.uninit(); 500 502 501 503 #ifdef VBOX_WITH_USB
Note:
See TracChangeset
for help on using the changeset viewer.