#include <mace/cmt/task.hpp>
#include <boost/chrono.hpp>
#include <mace/cmt/abstract_thread.hpp>
Go to the source code of this file.
Classes | |
class | mace::cmt::thread |
manages cooperative scheduling of tasks within a single operating system thread. More... | |
Namespaces | |
namespace | mace::cmt |
All types that are part of the MACE Cooperative Multi-Tasking Library. | |
Functions | |
priority | mace::cmt::current_priority () |
void | mace::cmt::usleep (uint64_t us) |
Same as cmt::current().usleep() | |
void | mace::cmt::sleep_until (const system_clock::time_point &tp) |
Same as cmt::current().sleep_until() | |
boost::posix_time::ptime | mace::cmt::to_system_time (const system_clock::time_point &t) |
system_clock::time_point | mace::cmt::to_time_point (const boost::posix_time::ptime &from) |
template<typename Functor > | |
auto | mace::cmt::async (Functor &&f, priority prio=priority())-> cmt |
void | mace::cmt::async (const boost::function< void()> &t, priority prio=priority()) |
int | mace::cmt::exec () |
Same as cmt::current().exec() | |
void | mace::cmt::yield () |
Same as cmt::thread::current().yield() | |
void | mace::cmt::quit () |
short for cmt::thread::current().quit() |
Definition in file thread.hpp.