Changeset 45376 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Apr 5, 2013 2:37:54 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_rpw.cpp
r45348 r45376 73 73 cr_server.head_spu->dispatch_table.UnmapBufferARB(GL_PIXEL_PACK_BUFFER_ARB); 74 74 75 cr_server.head_spu->dispatch_table.BufferDataARB(GL_PIXEL_PACK_BUFFER_ARB, pCurEntry->Size.cx*pCurEntry->Size.cy*4, 0, GL_STREAM_READ_ARB); 76 75 77 cr_server.head_spu->dispatch_table.BindBufferARB(GL_PIXEL_PACK_BUFFER_ARB, 0); 76 78 } … … 128 130 bool fExit = false; 129 131 bool fForceComplete = false; 132 bool fNotifyCmdCompleted = false; 130 133 131 134 CRASSERT(pDummyMural); 132 135 133 int rc = RTSemEventSignal(pWorker-> hSubmitEvent);136 int rc = RTSemEventSignal(pWorker->Ctl.hCompleteEvent); 134 137 if (!RT_SUCCESS(rc)) 135 138 { … … 181 184 enmCtlType = CR_SERVER_RPW_CTL_TYPE_UNDEFINED; 182 185 pCtlEntry = NULL; 186 fNotifyCmdCompleted = true; 183 187 } 184 188 … … 220 224 RTCritSectLeave(&pWorker->CritSect); 221 225 226 if (fNotifyCmdCompleted) 227 { 228 rc = RTSemEventSignal(pWorker->Ctl.hCompleteEvent); 229 if (!RT_SUCCESS(rc)) 230 { 231 crWarning("RTSemEventSignal failed rc %d", rc); 232 break; 233 } 234 fNotifyCmdCompleted = false; 235 } 236 222 237 if (fExit) 223 238 break; … … 239 254 Assert(!RTListIsEmpty(&GpuSubmittedList)); 240 255 fForceComplete = true; 256 } 257 258 rc = RTCritSectEnter(&pWorker->CritSect); 259 if (!RT_SUCCESS(rc)) 260 { 261 crWarning("RTCritSectEnter failed, rc %d", rc); 262 break; 241 263 } 242 264 } … … 366 388 if (RT_SUCCESS(rc)) 367 389 { 368 rc = RTSemEventWait(pWorker-> hSubmitEvent, RT_INDEFINITE_WAIT);390 rc = RTSemEventWait(pWorker->Ctl.hCompleteEvent, RT_INDEFINITE_WAIT); 369 391 if (RT_SUCCESS(rc)) 370 392 {
Note:
See TracChangeset
for help on using the changeset viewer.