Changeset 24925 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Nov 24, 2009 10:59:37 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55211
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp
r24779 r24925 1045 1045 } 1046 1046 1047 static DECLCALLBACK(void) vbvaVHWAHHCommandSetEventCallback(void * pContext) 1048 { 1049 RTSemEventSignal((RTSEMEVENT)pContext); 1050 } 1051 1047 1052 static int vbvaVHWAHHCommandPost(PVGASTATE pVGAState, VBOXVHWACMD* pCmd) 1048 1053 { … … 1054 1059 /* ensure the cmd is not deleted until we process it */ 1055 1060 vbvaVHWAHHCommandRetain (pCmd); 1056 pCmd->GuestVBVAReserved1 = (uint64_t)hComplEvent;1061 VBOXVHWA_HH_CALLBACK_SET(pCmd, vbvaVHWAHHCommandSetEventCallback, (void*)hComplEvent); 1057 1062 vbvaVHWAHandleCommand(pVGAState, NULL, pCmd); 1058 1063 if((ASMAtomicReadU32((volatile uint32_t *)&pCmd->Flags) & VBOXVHWACMD_FLAG_HG_ASYNCH) != 0) … … 1249 1254 else 1250 1255 { 1251 if(pCmd->GuestVBVAReserved1)1252 {1253 RTSEMEVENT hComplEvent = (RTSEMEVENT)pCmd->GuestVBVAReserved1;1254 RTSemEventSignal(hComplEvent);1256 PFNVBOXVHWA_HH_CALLBACK pfn = VBOXVHWA_HH_CALLBACK_GET(pCmd); 1257 if(pfn) 1258 { 1259 pfn(VBOXVHWA_HH_CALLBACK_GET_ARG(pCmd)); 1255 1260 } 1256 1261 rc = VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.