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<IOEventLoop> 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. |