|
CeresEngine 0.2.0
A game development framework
|
An ASIO execution context that wraps the operating system run loop. More...
#include <CeresEngine/Foundation/IO/RunLoop.hpp>
Public Member Functions | |
| ~RunLoop () noexcept override=default | |
Destroys the RunLoop. | |
| virtual void | run ()=0 |
| Starts running the run loop. | |
| virtual void | stop ()=0 |
| Stops the execution of the run loop. | |
Public Member Functions inherited from CeresEngine::ExecutionContext | |
| virtual | ~ExecutionContext () noexcept=default |
| Virtual destructor for the execution context object. | |
| template<typename T > | |
| bool | hasService () noexcept |
Determine if the ExecutionContext contains the specified service type. | |
| template<typename T > | |
| T & | getService () noexcept |
| Obtain the service object corresponding to the given type. | |
| template<typename T > | |
| T * | getServiceIf () noexcept |
| Obtain the service object corresponding to the given type. | |
| virtual AnyExecutor | getExecutor () noexcept=0 |
| Returns an executor that run execute scheduled commands on the context. | |
| executor_type | get_executor () noexcept |
| Returns an executor that run execute scheduled commands on the context. | |
| bool | isActive () const noexcept |
| Checks if the execution context is currently active. | |
Additional Inherited Members | |
Public Types inherited from CeresEngine::ExecutionContext | |
| using | ID = id |
| using | executor_type = AnyExecutor |
Static Public Member Functions inherited from CeresEngine::ExecutionContext | |
| static ExecutionContext * | getCurrent () noexcept |
| Gets the current execution context, if any is active. | |
| static ExecutionContext & | get () noexcept |
| Gets the current execution context, if any is active. | |
An ASIO execution context that wraps the operating system run loop.
|
overridedefaultnoexcept |
Destroys the RunLoop.
Starts running the run loop.
Implemented in CeresEngine::AppleRunLoop, CeresEngine::EmscriptenRunLoop, and CeresEngine::Win32RunLoop.
Stops the execution of the run loop.
Implemented in CeresEngine::AppleRunLoop, CeresEngine::EmscriptenRunLoop, and CeresEngine::Win32RunLoop.