Browse Source

Projucer: Fix potential order-of-destruction bug in AvailableModulesList

When the AvailableModulesList is destroyed, it will wait for the current
module scanning job (running on a background thread) to complete. This
job will try to take the AvailableModulesList::lock when it completes,
so the lock must outlive the background thread.
v6.1.6
reuk 3 years ago
parent
commit
474e6d73a4
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      extras/Projucer/Source/Project/Modules/jucer_AvailableModulesList.h

+ 1
- 1
extras/Projucer/Source/Project/Modules/jucer_AvailableModulesList.h View File

@@ -169,10 +169,10 @@ private:
}
//==============================================================================
std::future<void> scanner;
ModuleIDAndFolderList modulesList;
ListenerList<Listener> listeners;
CriticalSection lock;
std::future<void> scanner;
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AvailableModulesList)


Loading…
Cancel
Save