|
Sen API
Sen Libraries
|
Main entry point of a sen microkernel. More...
#include <kernel.h>
Public Member Functions | |
| Kernel (KernelConfig config) | |
| ~Kernel () noexcept | |
| int | run (KernelBlockMode blockMode=KernelBlockMode::doBlock) |
| Fire up the execution of the kernel. In case the is already running, -1 is returned. This method is thread-safe. | |
| void | requestStop (int exitCode=0) |
| Stops the execution and deallocates runtime resources. This method is thread-safe. | |
| const KernelConfig & | getConfig () const noexcept |
| Gets the configuration used to construct the kernel. This method is thread-safe. | |
| std::filesystem::path | getConfigPath () const noexcept |
| Gets the path to the configuration file used to construct the kernel. This method is thread-safe. | |
Static Public Member Functions | |
| static const BuildInfo & | getBuildInfo () noexcept |
| Gets the kernel build information. | |
| static void | registerTerminationHandler () |
| Registers the kernel termination handler. | |
Friends | |
| class | KernelApi |
| class | PreloadApi |
| class | UnloadApi |
| class | impl::Runner |
| class | TestKernel |
Main entry point of a sen microkernel.
|
explicit |
|
noexcept |
|
nodiscard |
Fire up the execution of the kernel. In case the is already running, -1 is returned. This method is thread-safe.
| void sen::kernel::Kernel::requestStop | ( | int | exitCode = 0 | ) |
Stops the execution and deallocates runtime resources. This method is thread-safe.
|
nodiscardnoexcept |
Gets the configuration used to construct the kernel. This method is thread-safe.
|
nodiscardnoexcept |
Gets the path to the configuration file used to construct the kernel. This method is thread-safe.
|
staticnodiscardnoexcept |
Gets the kernel build information.
|
static |
Registers the kernel termination handler.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |