Changeset 72480 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jun 8, 2018 10:19:45 AM (7 years ago)
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostDnsService.cpp
r72439 r72480 102 102 : virtualbox(aParent), 103 103 monitor(aMonitor), 104 info(NULL), 105 fModified(true) 104 info(NULL) 106 105 {} 107 106 … … 118 117 HostDnsMonitor *monitor; 119 118 HostDnsInformation *info; 120 bool fModified;121 119 }; 122 120 … … 329 327 330 328 331 void HostDnsMonitorProxy::notify() const329 void HostDnsMonitorProxy::notify() 332 330 { 333 331 LogRel(("HostDnsMonitorProxy::notify\n")); 334 m->fModified = true;332 updateInfo(); 335 333 m->virtualbox->i_onHostNameResolutionConfigurationChange(); 336 334 } … … 340 338 AssertReturn(m && m->info, E_FAIL); 341 339 RTCLock grab(m_LockMtx); 342 343 if (m->fModified)344 updateInfo();345 340 346 341 LogRel(("HostDnsMonitorProxy::GetNameServers:\n")); … … 357 352 RTCLock grab(m_LockMtx); 358 353 359 if (m->fModified)360 updateInfo();361 362 354 LogRel(("HostDnsMonitorProxy::GetDomainName: %s\n", 363 355 m->info->domain.empty() ? "no domain set" : m->info->domain.c_str())); … … 372 364 AssertReturn(m && m->info, E_FAIL); 373 365 RTCLock grab(m_LockMtx); 374 375 if (m->fModified)376 updateInfo();377 366 378 367 LogRel(("HostDnsMonitorProxy::GetSearchStrings:\n")); … … 397 386 void HostDnsMonitorProxy::updateInfo() 398 387 { 388 RTCLock grab(m_LockMtx); 389 399 390 HostDnsInformation *info = new HostDnsInformation(m->monitor->getInfo()); 400 391 HostDnsInformation *old = m->info; … … 405 396 delete old; 406 397 } 407 408 m->fModified = false;409 398 } 410 399 -
trunk/src/VBox/Main/src-server/HostDnsService.h
r72439 r72480 96 96 ~HostDnsMonitorProxy(); 97 97 void init(VirtualBox *virtualbox); 98 void notify() const;98 void notify(); 99 99 100 100 VirtualBox *getVirtualBox() const;
Note:
See TracChangeset
for help on using the changeset viewer.