mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-14 07:10:24 +02:00
adding volatile flags to certain OD bools that get changed by the UI. May fix reported stalled tasks which I can't reproduce.
This commit is contained in:
parent
903dcf9427
commit
5c88a0d93a
@ -148,13 +148,13 @@ class ODManager
|
||||
ODLock mTasksMutex;
|
||||
|
||||
//global pause switch for OD
|
||||
bool mPause;
|
||||
volatile bool mPause;
|
||||
ODLock mPauseLock;
|
||||
|
||||
int mNeedsDraw;
|
||||
volatile int mNeedsDraw;
|
||||
|
||||
///Number of threads currently running. Accessed thru multiple threads
|
||||
int mCurrentThreads;
|
||||
volatile int mCurrentThreads;
|
||||
//mutex for above variable
|
||||
ODLock mCurrentThreadsMutex;
|
||||
|
||||
@ -162,10 +162,10 @@ class ODManager
|
||||
///Maximum number of threads allowed out.
|
||||
int mMaxThreads;
|
||||
|
||||
bool mTerminate;
|
||||
volatile bool mTerminate;
|
||||
ODLock mTerminateMutex;
|
||||
|
||||
bool mTerminated;
|
||||
volatile bool mTerminated;
|
||||
ODLock mTerminatedMutex;
|
||||
|
||||
//for the queue not empty comdition
|
||||
|
@ -146,11 +146,11 @@ class ODTask
|
||||
|
||||
|
||||
int mTaskNumber;
|
||||
float mPercentComplete;
|
||||
volatile float mPercentComplete;
|
||||
ODLock mPercentCompleteMutex;
|
||||
bool mDoingTask;
|
||||
bool mTaskStarted;
|
||||
bool mTerminate;
|
||||
volatile bool mDoingTask;
|
||||
volatile bool mTaskStarted;
|
||||
volatile bool mTerminate;
|
||||
ODLock mTerminateMutex;
|
||||
//for a function not a member var.
|
||||
ODLock mBlockUntilTerminateMutex;
|
||||
@ -158,16 +158,16 @@ class ODTask
|
||||
std::vector<WaveTrack*> mWaveTracks;
|
||||
ODLock mWaveTrackMutex;
|
||||
|
||||
sampleCount mDemandSample;
|
||||
volatile sampleCount mDemandSample;
|
||||
ODLock mDemandSampleMutex;
|
||||
|
||||
bool mIsRunning;
|
||||
volatile bool mIsRunning;
|
||||
ODLock mIsRunningMutex;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
bool mNeedsODUpdate;
|
||||
volatile bool mNeedsODUpdate;
|
||||
ODLock mNeedsODUpdateMutex;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user