VirtualBox

Changeset 64708 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Nov 18, 2016 10:59:50 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111988
Message:

DrvHostPulseAudio: renamed fLoopWait to fAbortLoop and made it volatile!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostPulseAudio.cpp

    r64687 r64708  
    8888    pa_context           *pContext;
    8989    /** Shutdown indicator. */
    90     bool                  fLoopWait;
     90    volatile bool         fAbortLoop;
    9191    /** Pointer to host audio interface. */
    9292    PDMIHOSTAUDIO         IHostAudio;
     
    181181    }
    182182
    183     LogRel(("DEBUG: paSignalWaiter set fLoopWait=true and calling pa_threaded_mainloop_signal()\n"));
    184     pThis->fLoopWait = true;
     183    LogRel(("DEBUG: paSignalWaiter set fAbortLoop=true and calling pa_threaded_mainloop_signal()\n"));
     184    pThis->fAbortLoop = true;
    185185    pa_threaded_mainloop_signal(pThis->pMainLoop, 0);
    186186}
     
    267267    while (pa_operation_get_state(pOP) == PA_OPERATION_RUNNING)
    268268    {
    269         if (!pThis->fLoopWait)
     269        if (!pThis->fAbortLoop)
    270270        {
    271271            AssertPtr(pThis->pMainLoop);
     
    274274            LogRel(("DEBUG: leaving pa_threaded_mainloop_wait()\n"));
    275275        }
    276         pThis->fLoopWait = false;
     276        pThis->fAbortLoop = false;
    277277
    278278        uint64_t u64ElapsedMs = RTTimeMilliTS() - u64StartMs;
     
    476476        for (;;)
    477477        {
    478             if (!pThis->fLoopWait)
     478            if (!pThis->fAbortLoop)
    479479                pa_threaded_mainloop_wait(pThis->pMainLoop);
    480             pThis->fLoopWait = false;
     480            pThis->fAbortLoop = false;
    481481
    482482            pa_stream_state_t streamSt = pa_stream_get_state(pStream);
     
    546546    }
    547547
    548     pThis->fLoopWait = false;
     548    pThis->fAbortLoop = false;
    549549    pThis->pMainLoop = NULL;
    550550
     
    595595        for (;;)
    596596        {
    597             if (!pThis->fLoopWait)
     597            if (!pThis->fAbortLoop)
    598598                pa_threaded_mainloop_wait(pThis->pMainLoop);
    599             pThis->fLoopWait = false;
     599            pThis->fAbortLoop = false;
    600600
    601601            pa_context_state_t cstate = pa_context_get_state(pThis->pContext);
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