|
KENSv3
KAIST Educational Network System
|
Runnable is executed via System. The total ordering of execution is guaranteed by the System. More...
#include <E_System.hpp>
Public Types | |
| enum class | State { CREATED , STARTING , READY , RUNNING , WAITING , TERMINATED } |
Public Member Functions | |
| virtual void | start () final |
| Start and prepare (CREATED -> READY) | |
| virtual State | wake () final |
| Wake and keep running (READY -> RUNNING) | |
| virtual void | ready () final |
| Mark ready (WAITING -> READY) | |
Protected Member Functions | |
| Runnable () | |
| Constructs a Runnable interface. | |
| virtual void | wait () final |
| Enter wait state (RUNNING -> WAITING) | |
| virtual void | pre_main () |
| Prepare logic. | |
| virtual void | main ()=0 |
| Program logic. | |
| virtual void | run () final |
| Thread code. | |
Friends | |
| class | System |
Runnable is executed via System. The total ordering of execution is guaranteed by the System.
|
finalvirtual |
Wake and keep running (READY -> RUNNING)