All types that are part of the MACE Cooperative Multi-Tasking Library.
Namespaces | |
namespace | asio |
defines mace::cmt wrappers for boost::asio functions. | |
Classes | |
class | mutex |
mutex More... | |
class | promise |
class | future |
placeholder for the result of an asynchronous operation. More... | |
class | thread |
manages cooperative scheduling of tasks within a single operating system thread. More... | |
Functions | |
const char * | thread_name () |
boost::system_time | to_system_time (const boost::chrono::system_clock::time_point &t) |
priority | current_priority () |
void | usleep (uint64_t us) |
Same as cmt::current().usleep() | |
void | sleep_until (const system_clock::time_point &tp) |
Same as cmt::current().sleep_until() | |
boost::posix_time::ptime | to_system_time (const system_clock::time_point &t) |
system_clock::time_point | to_time_point (const boost::posix_time::ptime &from) |
template<typename Functor > | |
auto | async (Functor &&f, priority prio=priority())-> cmt |
void | async (const boost::function< void()> &t, priority prio=priority()) |
int | exec () |
Same as cmt::current().exec() | |
void | yield () |
Same as cmt::thread::current().yield() | |
void | quit () |
short for cmt::thread::current().quit() | |
template<typename T > | |
T | wait (boost::signal< void(T)> &sig, const microseconds &timeout_us=microseconds::max()) |
void | wait (boost::signal< void()> &sig, const microseconds &timeout_us=microseconds::max()) |