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

◆ set_state()

template<typename T>
void fl::task::detail::PromiseImpl< T >::set_state ( PromiseState_t s)
inlineprivate

Write the state atomically.

Definition at line 361 of file promise.h.

361 {
362 mState.store(static_cast<int>(s));
363 }
fl::atomic< int > mState
Definition promise.h:346
Implementation class for Promise - holds the actual state and logic.
Definition promise.h:245

References FL_NOEXCEPT, and mState.

Referenced by reject(), resolve(), and resolve().

+ Here is the caller graph for this function: