#include <ThreadGroup.h>
Public Member Functions | |
template<typename F > | |
void | CreateThread (F &&functor) |
template<typename F > | |
void | CreateThreads (size_t count, F functor) |
void | JoinAll () |
ThreadGroup ()=default | |
~ThreadGroup () | |
Private Attributes | |
std::vector< std::thread > | _threads |
Additional Inherited Members | |
Private Member Functions inherited from carla::NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable (NonCopyable &&)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
NonCopyable & | operator= (NonCopyable &&)=delete |
Definition at line 17 of file ThreadGroup.h.
|
default |
|
inline |
Definition at line 22 of file ThreadGroup.h.
References JoinAll().
|
inline |
Definition at line 27 of file ThreadGroup.h.
References _threads.
Referenced by CreateThreads(), and TEST().
|
inline |
Definition at line 32 of file ThreadGroup.h.
References _threads, and CreateThread().
Referenced by carla::ThreadPool::AsyncRun(), and TEST().
|
inline |
Definition at line 39 of file ThreadGroup.h.
References _threads, and DEBUG_ASSERT_NE.
Referenced by carla::ThreadPool::Stop(), TEST(), and ~ThreadGroup().
|
private |
Definition at line 51 of file ThreadGroup.h.
Referenced by CreateThread(), CreateThreads(), and JoinAll().