VirtualBox

Changeset 35458 in vbox


Ignore:
Timestamp:
Jan 10, 2011 2:15:07 PM (14 years ago)
Author:
vboxsync
Message:

Main/webservice: make global VirtualBox reference static to prevent unintentional unsynchronized accesses in the future, and add changelog for localhost fix

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/user_ChangeLogImpl.xml

    r35441 r35458  
    4848        <para>Main: fixed crash under rare circumstances due to an invalid
    4949          logging string (4.0 regression)</para>
     50      </listitem>
     51
     52      <listitem>
     53        <para>Webservice: now listens to localhost by default as documented
     54          (bug #6067)</para>
    5055      </listitem>
    5156
  • trunk/src/VBox/Main/webservice/vboxweb.cpp

    r35454 r35458  
    8888 ****************************************************************************/
    8989
    90 ComPtr<IVirtualBoxClient> g_pVirtualBoxClient = NULL;
    91 ComPtr<IVirtualBox>     g_pVirtualBox = NULL;
     90static ComPtr<IVirtualBoxClient> g_pVirtualBoxClient = NULL;
    9291
    9392// generated strings in methodmaps.cpp
     
    129128util::WriteLockHandle  *g_pAuthLibLockHandle;
    130129
    131 // this mutex protects the global VirtualBox reference
    132 util::RWLockHandle  *g_pVirtualBoxLockHandle;
     130// this mutex protects the global VirtualBox reference below
     131static util::RWLockHandle *g_pVirtualBoxLockHandle;
     132
     133static ComPtr<IVirtualBox> g_pVirtualBox = NULL;
    133134
    134135// this mutex protects all of the below
  • trunk/src/VBox/Main/webservice/vboxweb.h

    r35454 r35458  
    5555 ****************************************************************************/
    5656
    57 extern ComPtr<IVirtualBox> g_pVirtualBox;
    5857extern bool g_fVerbose;
    5958
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