![]() |
Public API Reference |
A group of threads handled as one unit. More...
#include <csutil/threading/thread.h>
Public Member Functions | |
| void | Add (Thread *thread) |
| Add a thread to the group. | |
| size_t | GetSize () const |
| Get number of threads in group. | |
| Thread * | GetThread (size_t index) const |
| Get thread with specific index. | |
| void | Remove (Thread *thread) |
| Remove thread from group. | |
| void | StartAll () |
| Start all threads in the group. | |
| void | StopAll () |
| Stop all threads in the group. | |
| void | WaitAll () |
| Wait for all threads in the group. | |
| void CS::Threading::ThreadGroup::Add | ( | Thread * | thread | ) | [inline] |
| size_t CS::Threading::ThreadGroup::GetSize | ( | ) | const [inline] |
| Thread* CS::Threading::ThreadGroup::GetThread | ( | size_t | index | ) | const [inline] |
| void CS::Threading::ThreadGroup::Remove | ( | Thread * | thread | ) | [inline] |
| void CS::Threading::ThreadGroup::StartAll | ( | ) | [inline] |
| void CS::Threading::ThreadGroup::StopAll | ( | ) | [inline] |
| void CS::Threading::ThreadGroup::WaitAll | ( | ) | [inline] |