Rishka
RISC-V virtual runtime in C/C++ made for ESP32-WROVER
Runtime Class Referencefinal

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

Detailed Description

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.

Member Function Documentation

◆ get_fork_stream()

string Runtime::get_fork_stream ( )
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.

Returns
A string containing the content of the fork stream.

◆ yield()

void Runtime::yield ( )
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.


The documentation for this class was generated from the following files: