UHD
003.007.003-0-unknown
|
#include <tasks.hpp>
Public Types | |
typedef boost::shared_ptr< task > | sptr |
typedef boost::function< void(void)> | task_fcn_type |
Static Public Member Functions | |
static sptr | make (const task_fcn_type &task_fcn) |
typedef boost::shared_ptr<task> uhd::task::sptr |
typedef boost::function<void(void)> uhd::task::task_fcn_type |
|
static |
Create a new task object with function callback. The task function callback will be run in a loop. until the thread is interrupted by the deconstructor.
A task should return in a reasonable amount of time or may block forever under the following conditions:
task_fcn | the task callback function |