From 9399b07d0c9194042bb8b9d97561617d98fa5d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Mon, 11 Jul 2022 12:28:26 +0200 Subject: [PATCH 1/2] hello_tutorial: Let hello_clients run periodically. --- repos/hello_tutorial/src/hello/client/main.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/repos/hello_tutorial/src/hello/client/main.cc b/repos/hello_tutorial/src/hello/client/main.cc index 46f3bab35c..55d25e2436 100644 --- a/repos/hello_tutorial/src/hello/client/main.cc +++ b/repos/hello_tutorial/src/hello/client/main.cc @@ -16,10 +16,12 @@ #include #include #include +#include struct HelloClient { Genode::Env &_env; Hello::Connection &_hello; + Timer::Connection _timer{_env}; unsigned short _a; unsigned short _b; @@ -49,9 +51,12 @@ struct HelloClient { { _hello.say_hello(); - int const sum = _hello.add(_a, _b); - Genode::log("added ", _a, " + ", _b, " = ", sum); - + while (true) { + int const sum = _hello.add(_a, _b); + Genode::log("added ", _a, " + ", _b, " = ", sum); + _timer.msleep(_a*1000); + _b += 2; + } Genode::log("hello test completed."); } From db3b242acbd725487bc0f72dbbe354e22c9041ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Mon, 11 Jul 2022 12:30:50 +0200 Subject: [PATCH 2/2] hello_tutorial: Adapted scenario. --- repos/hello_tutorial/run/hello.run | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/repos/hello_tutorial/run/hello.run b/repos/hello_tutorial/run/hello.run index 244550a19d..13a2b10850 100644 --- a/repos/hello_tutorial/run/hello.run +++ b/repos/hello_tutorial/run/hello.run @@ -22,6 +22,13 @@ install_config { + + + + + + +