Skip to content

Commit c20dc78

Browse files
committed
Fix non-standard-conform init of std::atomic_flag with true
1 parent e4fb8b6 commit c20dc78

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

PlugIn/ARAPlug.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,8 @@ DocumentController::DocumentController (const PlugInEntry* entry, const ARADocum
910910
_hostModelUpdateController { instance },
911911
_hostPlaybackController { instance }
912912
{
913+
_analysisProgressIsSynced.test_and_set (std::memory_order_release);
914+
913915
#if ARA_VALIDATE_API_CALLS
914916
_documentControllers.emplace (this, entry);
915917
#endif

PlugIn/ARAPlug.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@ class DocumentController : public DocumentControllerInterface,
13351335
std::map<AudioSource*, ContentUpdateScopes> _audioSourceContentUpdates;
13361336
std::map<AudioModification*, ContentUpdateScopes> _audioModificationContentUpdates;
13371337
std::map<PlaybackRegion*, ContentUpdateScopes> _playbackRegionContentUpdates;
1338-
std::atomic_flag _analysisProgressIsSynced { true };
1338+
std::atomic_flag _analysisProgressIsSynced/* { true } C++ standard only allows for default-init to false */;
13391339

13401340
bool _isHostEditingDocument { false };
13411341

0 commit comments

Comments
 (0)