mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
Removed nodiscard and added output via stdout.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <cstdlib>
|
||||
#include <vector>
|
||||
#include <unistd.h>
|
||||
#include <iostream>
|
||||
|
||||
namespace Posix_playground {
|
||||
class Chrono_thread;
|
||||
@@ -21,7 +22,7 @@ class Posix_playground::Chrono_thread {
|
||||
public:
|
||||
Chrono_thread(std::uint16_t id) : _id(id) { }
|
||||
|
||||
[[nodiscard]] void execute()
|
||||
void execute()
|
||||
{
|
||||
std::chrono::time_point<std::chrono::steady_clock> start;
|
||||
std::chrono::time_point<std::chrono::steady_clock> end;
|
||||
@@ -43,6 +44,8 @@ class Posix_playground::Chrono_thread {
|
||||
int main(void) {
|
||||
Genode::log("Starting POSIX stdcxx playground");
|
||||
|
||||
std::cout << "Testing stdout" << std::endl;
|
||||
|
||||
Genode::log("Let's start some threads");
|
||||
|
||||
std::vector<Posix_playground::Chrono_thread*> thread_objs(5);
|
||||
|
||||
Reference in New Issue
Block a user