mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
ImageCache: Avoid data race on impl when accessing cache from a background thread
This commit is contained in:
parent
4b57909fb0
commit
752a676fa6
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue