Bytemaster's Boost Libraries
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
boost::cmt::thread Class Reference

manages cooperative scheduling of tasks within a single operating system thread. More...

#include <thread.hpp>

Inherits boost::cmt::abstract_thread.

List of all members.

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 >
sync (const boost::function< T()> &t, priority prio, const microseconds &timeout_us=microseconds::max(), const char *n="")
template<typename 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 threadcurrent ()
static threadcreate ()

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

Detailed Description

manages cooperative scheduling of tasks within a single operating system thread.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Defines