This website works better with JavaScript.
Home
Help
Sign In
DISTRHO
/
JUCE
mirror of
https://github.com/DISTRHO/JUCE
Watch
1
Star
0
Fork
0
Code
Releases
1
Activity
Browse Source
Added a ScopedLock in ThreadPool::getNumJobs() to fix a potential data race
tags/2021-05-28
ed
6 years ago
parent
290aad89f8
commit
ba2575a4d3
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
modules/juce_core/threads/juce_ThreadPool.cpp
+ 1
- 0
modules/juce_core/threads/juce_ThreadPool.cpp
View File
@@ -176,6 +176,7 @@ void ThreadPool::addJob (std::function<void()> jobToRun)
int ThreadPool::getNumJobs() const noexcept
{
const ScopedLock sl (lock);
return jobs.size();
}
Write
Preview
Loading…
Cancel
Save