Rishka
RISC-V virtual runtime in C/C++ made for ESP32-WROVER
runtime.h
Go to the documentation of this file.
1/*
2 * This file is part of the Rishka distribution (https://github.com/nthnn/rishka).
3 * Copyright (c) 2024 Nathanne Isip.
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
29#ifndef LIBRISHKA_RUNTIME_H
30#define LIBRISHKA_RUNTIME_H
31
40class Runtime final {
41public:
53 static void yield();
54
64 static string get_fork_stream();
65};
66
67#endif /* LIBRISHKA_RUNTIME_H */
The Runtime class provides utilities for managing runtime operations.
Definition: runtime.h:40
static string get_fork_stream()
Retrieves the fork stream.
Definition: librishka_rt.cpp:25
static void yield()
Yield the execution context to other tasks or threads.
Definition: librishka_rt.cpp:21