SpiecsEngine
 
Loading...
Searching...
No Matches

◆ Wait()

template<typename ... Params>
void Spices::Thread< Params >::Wait ( ) const
inline

Wait for all thread tasks finished.

Definition at line 440 of file ThreadPoolBasic.h.

441 {
443
444 while (m_ThreadTasks.load() != 0 || m_IsInTask.load()) {};
445 }
#define SPICES_PROFILE_ZONE
std::atomic_int m_ThreadTasks
Thread Tasks Count.
std::atomic_bool m_IsInTask
True if this thread is executing a task.