Rishka
RISC-V virtual runtime in C/C++ made for ESP32-WROVER
|
The Runtime class provides utilities for managing runtime operations. More...
#include <runtime.h>
Static Public Member Functions | |
static void | yield () |
Yield the execution context to other tasks or threads. More... | |
static string | get_fork_stream () |
Retrieves the fork stream. More... | |
The Runtime class provides utilities for managing runtime operations.
The Runtime class encapsulates functionality related to runtime management and control flow within Rishka applications. It serves as a central hub for coordinating runtime activities, such as task scheduling, event processing, and resource management.
|
static |
Retrieves the fork stream.
This static method returns the current stream text content from the fork program previously executed. The stream contains all of the printed text of the previously executed program.
|
static |
Yield the execution context to other tasks or threads.
The yield() function allows cooperative multitasking by yielding the execution context to other tasks or threads within the application. By invoking this function, the currently executing task relinquishes control of the CPU, allowing other tasks or threads to execute. This method is useful for implementing cooperative multitasking or event-driven programming paradigms, where tasks voluntarily yield control to other tasks or respond to external events.