Bytemaster's Boost Libraries
|
manages cooperative scheduling of tasks within a single operating system thread. More...
#include <thread.hpp>
Inherits boost::cmt::abstract_thread.
Public Member Functions | |
void | async (const boost::function< void()> &t, priority p=priority()) |
template<typename T > | |
future< T > | async (const boost::function< T()> &t, priority prio=priority(), const char *n="") |
template<typename T > | |
T | sync (const boost::function< T()> &t, priority prio, const microseconds &timeout_us=microseconds::max(), const char *n="") |
template<typename T > | |
T | sync (const boost::function< T()> &t, const microseconds &timeout_us=microseconds::max(), const char *n="") |
void | yield () |
void | usleep (uint64_t us) |
void | quit () |
void | exec () |
priority | current_priority () const |
Static Public Member Functions | |
static thread & | current () |
static thread * | create () |
Protected Member Functions | |
void | wait (const promise_base::ptr &p, const microseconds &timeout_us) |
void | notify (const promise_base::ptr &p) |
void | exec_fiber () |
Friends | |
class | promise_base |
manages cooperative scheduling of tasks within a single operating system thread.