A threaded<T> is a thread that is also a T. When the thread is run, the T's run() method is invoked. For example:
threaded<io_event_loop> loop; loop.start(); // Runs the event loop in a separate thread
Public Methods | |
threaded () | |
threaded (const char *ch) | |
template<class A1> | threaded (A1 &a1) |
template<class A1, class A2> | threaded (A1 &a1, A2 &a2) |
template<class A1, class A2, class A3> | threaded (A1 &a1, A2 &a2, A3 &a3) |
Protected Methods | |
virtual void | run () |
|
|
|
|
|
|
|
|
|
|
|
Implements thread. |