VirtualBox

Changeset 78000 in vbox for trunk


Ignore:
Timestamp:
Apr 3, 2019 3:58:12 PM (6 years ago)
Author:
vboxsync
Message:

Main/HostDnsServiceDarwin: Renaming.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/darwin/HostDnsServiceDarwin.cpp

    r77999 r78000  
    4141    CFRunLoopSourceRef m_DnsWatcher;
    4242    CFRunLoopRef m_RunLoopRef;
    43     CFRunLoopSourceRef m_Stopper;
     43    CFRunLoopSourceRef m_SourceStop;
    4444    volatile bool m_fStop;
    4545    RTSEMEVENT m_evtStop;
     
    100100    sctx.perform = HostDnsServiceDarwin::Data::performShutdownCallback;
    101101
    102     m->m_Stopper = CFRunLoopSourceCreate(kCFAllocatorDefault, 0, &sctx);
    103     AssertReturn(m->m_Stopper, E_FAIL);
    104 
    105     CFRunLoopAddSource(m->m_RunLoopRef, m->m_Stopper, 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);
    106106
    107107    return updateInfo();
     
    110110void HostDnsServiceDarwin::uninit(void)
    111111{
    112     CFRunLoopRemoveSource(m->m_RunLoopRef, m->m_Stopper, kCFRunLoopCommonModes);
    113     CFRelease(m->m_Stopper);
     112    CFRunLoopRemoveSource(m->m_RunLoopRef, m->m_SourceStop, kCFRunLoopCommonModes);
     113    CFRelease(m->m_SourceStop);
    114114
    115115    CFRelease(m->m_RunLoopRef);
     
    130130    {
    131131        ASMAtomicXchgBool(&m->m_fStop, true);
    132         CFRunLoopSourceSignal(m->m_Stopper);
     132        CFRunLoopSourceSignal(m->m_SourceStop);
    133133        CFRunLoopStop(m->m_RunLoopRef);
    134134
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette