Execute all pending functors.
146 {
147 std::vector<Functor> functors;
149
150 {
151 std::unique_lock<std::mutex> lock(
m_Mutex);
153 }
154
155 for (
const Functor& functor : functors)
156 {
157 functor();
158 }
159
161 }
std::vector< Functor > m_PendingFunctors
Delay functors.
std::atomic_bool m_IsCallingPendingFunctors
True if is execute pending functors.
std::mutex m_Mutex
Mutex for PendingFunctors.
std::function< void()> Functor