Changeset 64708 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Nov 18, 2016 10:59:50 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 111988
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostPulseAudio.cpp
r64687 r64708 88 88 pa_context *pContext; 89 89 /** Shutdown indicator. */ 90 bool fLoopWait;90 volatile bool fAbortLoop; 91 91 /** Pointer to host audio interface. */ 92 92 PDMIHOSTAUDIO IHostAudio; … … 181 181 } 182 182 183 LogRel(("DEBUG: paSignalWaiter set f LoopWait=true and calling pa_threaded_mainloop_signal()\n"));184 pThis->f LoopWait= true;183 LogRel(("DEBUG: paSignalWaiter set fAbortLoop=true and calling pa_threaded_mainloop_signal()\n")); 184 pThis->fAbortLoop = true; 185 185 pa_threaded_mainloop_signal(pThis->pMainLoop, 0); 186 186 } … … 267 267 while (pa_operation_get_state(pOP) == PA_OPERATION_RUNNING) 268 268 { 269 if (!pThis->f LoopWait)269 if (!pThis->fAbortLoop) 270 270 { 271 271 AssertPtr(pThis->pMainLoop); … … 274 274 LogRel(("DEBUG: leaving pa_threaded_mainloop_wait()\n")); 275 275 } 276 pThis->f LoopWait= false;276 pThis->fAbortLoop = false; 277 277 278 278 uint64_t u64ElapsedMs = RTTimeMilliTS() - u64StartMs; … … 476 476 for (;;) 477 477 { 478 if (!pThis->f LoopWait)478 if (!pThis->fAbortLoop) 479 479 pa_threaded_mainloop_wait(pThis->pMainLoop); 480 pThis->f LoopWait= false;480 pThis->fAbortLoop = false; 481 481 482 482 pa_stream_state_t streamSt = pa_stream_get_state(pStream); … … 546 546 } 547 547 548 pThis->f LoopWait= false;548 pThis->fAbortLoop = false; 549 549 pThis->pMainLoop = NULL; 550 550 … … 595 595 for (;;) 596 596 { 597 if (!pThis->f LoopWait)597 if (!pThis->fAbortLoop) 598 598 pa_threaded_mainloop_wait(pThis->pMainLoop); 599 pThis->f LoopWait= false;599 pThis->fAbortLoop = false; 600 600 601 601 pa_context_state_t cstate = pa_context_get_state(pThis->pContext);
Note:
See TracChangeset
for help on using the changeset viewer.