Reference | Class List | Member Functions | Typedefs | File List |
This function object wraps a boolean thread function object. The wrapped task function is invoked by calling the operator () and it is executed in regular time intervals until false is returned. The interval length may be zero. Please note that a pool's thread is engaged as long as the task is looped.
Definition at line 107 of file task_adaptors.hpp.
Public Types | |
typedef void | result_type |
Public Member Functions | |
looped_task_func (function0< bool > const &function, unsigned int const interval=0) | |
void | operator() (void) const |
|
Indicates the functor's result type.
Definition at line 115 of file task_adaptors.hpp. |
|
Constructor.
Definition at line 122 of file task_adaptors.hpp. |
|
Executes the task function. Definition at line 131 of file task_adaptors.hpp. |