SpiecsEngine
 
Loading...
Searching...
No Matches

◆ Thread() [1/2]

template<typename ... Params>
Spices::Thread< Params >::Thread ( ThreadFunc func,
uint32_t threadId )
inline

Constructor Function.

Parameters
[in]funcThread Function lambda.
[in]threadIdThread ID.

Definition at line 44 of file ThreadPoolBasic.h.

45 : m_Func(func)
46 , m_ThreadId(threadId)
47 , m_ThreadTasks(0)
48 , m_IsInTask(false)
49 {}
std::atomic_int m_ThreadTasks
Thread Tasks Count.
uint32_t m_ThreadId
Thread Id.
ThreadFunc m_Func
Thread Function.
std::atomic_bool m_IsInTask
True if this thread is executing a task.

References Spices::Thread< Params >::m_Func, Spices::Thread< Params >::m_ThreadId, and Spices::Thread< Params >::Thread().

Referenced by Spices::Thread< Params >::Thread().