FastLED 3.9.15
Loading...
Searching...
No Matches

◆ compare_exchange_weak()

template<typename T>
bool fl::AtomicFake< T >::compare_exchange_weak ( T & expected,
T desired,
memory_order = memory_order_seq_cst )
inline

Definition at line 75 of file atomic.h.

75 {
76 if (mValue == expected) {
78 return true;
79 } else {
81 return false;
82 }
83 }
T volatile mValue
Definition atomic.h:193

Referenced by fl::AtomicFake< bool >::compare_exchange_strong().

+ Here is the caller graph for this function: