Browse Source

ImageCache: Avoid data race on impl when accessing cache from a background thread

v6.1.6
reuk 4 years ago
parent
commit
752a676fa6
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_graphics/images/juce_ImageCache.cpp

+ 2
- 2
modules/juce_graphics/images/juce_ImageCache.cpp View File

@@ -29,10 +29,10 @@ namespace juce
struct ImageCache::Pimpl : private Timer,
private DeletedAtShutdown
{
Pimpl() {}
Pimpl() = default;
~Pimpl() override { clearSingletonInstance(); }
JUCE_DECLARE_SINGLETON_SINGLETHREADED_MINIMAL (ImageCache::Pimpl)
JUCE_DECLARE_SINGLETON (ImageCache::Pimpl, false)
Image getFromHashCode (const int64 hashCode) noexcept
{


Loading…
Cancel
Save