线程组
更多...
#include <threads.hpp>
线程组
管理一组线程,它们有相同的线程处理例程
在文件 threads.hpp 第 526 行定义.
winux::ThreadGroup::ThreadGroup |
( |
| ) |
|
|
inline |
template<typename _Fx , typename... _ArgType>
winux::ThreadGroup::ThreadGroup |
( |
size_t |
count, |
|
|
_Fx |
fn, |
|
|
_ArgType &&... |
arg |
|
) |
| |
|
inline |
virtual winux::ThreadGroup::~ThreadGroup |
( |
| ) |
|
|
inlinevirtual |
winux::ThreadGroup::ThreadGroup |
( |
ThreadGroup && |
other | ) |
|
|
inline |
template<typename _Fx , typename... _ArgType>
ThreadGroup& winux::ThreadGroup::create |
( |
size_t |
count, |
|
|
_Fx |
fn, |
|
|
_ArgType &&... |
arg |
|
) |
| |
|
inline |
template<class _ThreadCls >
ThreadGroup& winux::ThreadGroup::create |
( |
size_t |
count | ) |
|
|
inline |
bool winux::ThreadGroup::wait |
( |
double |
sec = -1 | ) |
|
等待所有线程运行完毕
返回false表示超时,返回true表示运行线程全部正常退出
该类的文档由以下文件生成: