#include <ctpl.h>
|
void | set_num (size_t n) |
|
size_t | get_num () |
|
size_t | get_idle () |
|
template<typename C , typename F , typename M , typename... Rest> |
auto | push_move (F &&f, C *c, M &&movable, Rest &&... rest) -> std::future< decltype((c-> *f)(new forpy::Desk(0), movable, rest...))> |
| For member functions (with parameters). More...
|
|
template<typename C , typename F , typename... Rest> |
auto | push (F &&f, C *c, Rest &&... rest) -> std::future< decltype((c-> *f)(new forpy::Desk(0), rest...))> |
|
template<typename F , typename... Rest> |
auto | push (F &&f, Rest &&... rest) -> std::future< decltype(f(new Desk(0), rest...))> |
|
template<typename F > |
auto | push (F &&f) -> std::future< decltype(f(new Desk(0)))> |
|
void | stop (const bool &wait=false) |
|
| ~ThreadControl () |
|
Definition at line 300 of file ctpl.h.
◆ ThreadControl()
forpy::ThreadControl::ThreadControl |
( |
| ) |
|
|
inlineprivate |
◆ ~ThreadControl()
forpy::ThreadControl::~ThreadControl |
( |
| ) |
|
|
inline |
◆ DISALLOW_COPY_AND_ASSIGN()
◆ get_idle()
size_t forpy::ThreadControl::get_idle |
( |
| ) |
|
|
inline |
◆ get_num()
size_t forpy::ThreadControl::get_num |
( |
| ) |
|
|
inline |
◆ getInstance()
◆ push() [1/3]
template<typename C , typename F , typename... Rest>
auto forpy::ThreadControl::push |
( |
F && |
f, |
|
|
C * |
c, |
|
|
Rest &&... |
rest |
|
) |
| -> std::future<decltype((c->*f)(new forpy::Desk(0), rest...))> |
|
inline |
◆ push() [2/3]
template<typename F , typename... Rest>
auto forpy::ThreadControl::push |
( |
F && |
f, |
|
|
Rest &&... |
rest |
|
) |
| -> std::future<decltype(f(new Desk(0), rest...))> |
|
inline |
◆ push() [3/3]
template<typename F >
auto forpy::ThreadControl::push |
( |
F && |
f | ) |
-> std::future<decltype(f(new Desk(0)))> |
|
inline |
◆ push_move()
template<typename C , typename F , typename M , typename... Rest>
auto forpy::ThreadControl::push_move |
( |
F && |
f, |
|
|
C * |
c, |
|
|
M && |
movable, |
|
|
Rest &&... |
rest |
|
) |
| -> std::future<decltype((c->*f)(new forpy::Desk(0), movable, rest...))> |
|
inline |
For member functions (with parameters).
Definition at line 345 of file ctpl.h.
◆ set_num()
void forpy::ThreadControl::set_num |
( |
size_t |
n | ) |
|
|
inline |
◆ stop()
void forpy::ThreadControl::stop |
( |
const bool & |
wait = false | ) |
|
|
inline |
◆ ttp
The documentation for this class was generated from the following file:
- /Users/classner/git/forpy/include/forpy/util/threading/ctpl.h