VirtualBox

Changeset 22750 in vbox


Ignore:
Timestamp:
Sep 3, 2009 1:52:19 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51898
Message:

VBoxManageGuestProp.cpp: Removed the unused event semaphore. obsoleted by the new code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp

    r22734 r22750  
    3636#include <VBox/log.h>
    3737#include <iprt/asm.h>
    38 #include <iprt/semaphore.h>
    3938#include <iprt/stream.h>
    4039#include <iprt/string.h>
     
    6766        refcnt = 0;
    6867#endif
    69 #ifndef USE_XPCOM_QUEUE
    70         int rc = RTSemEventMultiCreate(&mhEvent);
    71         if (RT_FAILURE(rc))
    72             mhEvent = NIL_RTSEMEVENTMULTI;
    73 #endif
    7468    }
    7569
    7670    virtual ~GuestPropertyCallback()
    7771    {
    78 #ifndef USE_XPCOM_QUEUE
    79         RTSemEventMultiDestroy(mhEvent);
    80         mhEvent = NIL_RTSEMEVENTMULTI;
    81 #endif
    8272    }
    8373
     
    177167            RTPrintf("Name: %lS, value: %lS, flags: %lS\n", name, value, flags);
    178168            ASMAtomicWriteBool(&mSignalled, true);
    179 #ifndef USE_XPCOM_QUEUE
    180             int rc = RTSemEventMultiSignal(mhEvent);
    181             AssertRC(rc);
    182 #endif
    183169        }
    184170        return S_OK;
     
    189175        return mSignalled;
    190176    }
    191 
    192 #ifndef USE_XPCOM_QUEUE
    193     /** Wrapper around RTSemEventMultiWait. */
    194     int wait(uint32_t cMillies)
    195     {
    196         return RTSemEventMultiWait(mhEvent, cMillies);
    197     }
    198 #endif
    199177
    200178private:
     
    204182#ifndef VBOX_WITH_XPCOM
    205183    long refcnt;
    206 #endif
    207 #ifndef USE_XPCOM_QUEUE
    208     /** Event semaphore to wait on. */
    209     RTSEMEVENTMULTI mhEvent;
    210184#endif
    211185};
Note: See TracChangeset for help on using the changeset viewer.

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