VirtualBox

Changeset 54284 in vbox


Ignore:
Timestamp:
Feb 18, 2015 8:51:35 PM (10 years ago)
Author:
vboxsync
Message:

Frontends/VBoxManage: use AutoReadLock in DHCPServer getters.

File:
1 edited

Legend:

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

    r54265 r54284  
    179179HRESULT DHCPServer::getNetworkName(com::Utf8Str &aName)
    180180{
     181    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     182
    181183    aName = mName;
    182184    return S_OK;
     
    186188HRESULT DHCPServer::getEnabled(BOOL *aEnabled)
    187189{
     190    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     191
    188192    *aEnabled = m->enabled;
    189 
    190193    return S_OK;
    191194}
     
    208211HRESULT DHCPServer::getIPAddress(com::Utf8Str &aIPAddress)
    209212{
     213    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     214
    210215    aIPAddress = Utf8Str(m->IPAddress);
    211 
    212216    return S_OK;
    213217}
     
    216220HRESULT DHCPServer::getNetworkMask(com::Utf8Str &aNetworkMask)
    217221{
     222    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     223
    218224    aNetworkMask = m->GlobalDhcpOptions[DhcpOpt_SubnetMask];
    219 
    220225    return S_OK;
    221226}
     
    224229HRESULT DHCPServer::getLowerIP(com::Utf8Str &aIPAddress)
    225230{
     231    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     232
    226233    aIPAddress = Utf8Str(m->lowerIP);
    227 
    228234    return S_OK;
    229235}
     
    232238HRESULT DHCPServer::getUpperIP(com::Utf8Str &aIPAddress)
    233239{
     240    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     241
    234242    aIPAddress = Utf8Str(m->upperIP);
    235 
    236243    return S_OK;
    237244}
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