HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
thread_group Class Reference

#include <thread.h>

Public Member Functions

 thread_group ()
 
 ~thread_group ()
 
void add_thread (thread *t)
 
template<typename FUNC , typename... Args>
threadcreate_thread (FUNC func, Args &&...args)
 
void join_all ()
 
size_t size () const
 

Detailed Description

Simple thread group class: lets you spawn a group of new threads, then wait for them to all complete.

Definition at line 546 of file thread.h.

Constructor & Destructor Documentation

thread_group::thread_group ( )
inline

Definition at line 548 of file thread.h.

thread_group::~thread_group ( )
inline

Definition at line 549 of file thread.h.

Member Function Documentation

void thread_group::add_thread ( thread t)
inline

Definition at line 551 of file thread.h.

template<typename FUNC , typename... Args>
thread* thread_group::create_thread ( FUNC  func,
Args &&...  args 
)
inline

Definition at line 560 of file thread.h.

void thread_group::join_all ( )
inline

Definition at line 567 of file thread.h.

size_t thread_group::size ( void  ) const
inline

Definition at line 575 of file thread.h.


The documentation for this class was generated from the following file: