Changeset 22750 in vbox
- Timestamp:
- Sep 3, 2009 1:52:19 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 51898
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp
r22734 r22750 36 36 #include <VBox/log.h> 37 37 #include <iprt/asm.h> 38 #include <iprt/semaphore.h>39 38 #include <iprt/stream.h> 40 39 #include <iprt/string.h> … … 67 66 refcnt = 0; 68 67 #endif 69 #ifndef USE_XPCOM_QUEUE70 int rc = RTSemEventMultiCreate(&mhEvent);71 if (RT_FAILURE(rc))72 mhEvent = NIL_RTSEMEVENTMULTI;73 #endif74 68 } 75 69 76 70 virtual ~GuestPropertyCallback() 77 71 { 78 #ifndef USE_XPCOM_QUEUE79 RTSemEventMultiDestroy(mhEvent);80 mhEvent = NIL_RTSEMEVENTMULTI;81 #endif82 72 } 83 73 … … 177 167 RTPrintf("Name: %lS, value: %lS, flags: %lS\n", name, value, flags); 178 168 ASMAtomicWriteBool(&mSignalled, true); 179 #ifndef USE_XPCOM_QUEUE180 int rc = RTSemEventMultiSignal(mhEvent);181 AssertRC(rc);182 #endif183 169 } 184 170 return S_OK; … … 189 175 return mSignalled; 190 176 } 191 192 #ifndef USE_XPCOM_QUEUE193 /** Wrapper around RTSemEventMultiWait. */194 int wait(uint32_t cMillies)195 {196 return RTSemEventMultiWait(mhEvent, cMillies);197 }198 #endif199 177 200 178 private: … … 204 182 #ifndef VBOX_WITH_XPCOM 205 183 long refcnt; 206 #endif207 #ifndef USE_XPCOM_QUEUE208 /** Event semaphore to wait on. */209 RTSEMEVENTMULTI mhEvent;210 184 #endif 211 185 };
Note:
See TracChangeset
for help on using the changeset viewer.