mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
Made JUCE's Atomic class a simple wrapper around std::atomic on platforms that support it
This commit is contained in:
parent
02349f4677
commit
8e7cc759f5
5 changed files with 424 additions and 428 deletions
|
|
@ -542,7 +542,7 @@ public:
|
|||
if (old == callbackToUse)
|
||||
break;
|
||||
|
||||
if (callback.compareAndSetValue (callbackToUse, old) == old)
|
||||
if (callback.compareAndSetBool (callbackToUse, old))
|
||||
break;
|
||||
|
||||
Thread::sleep (1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue