From 33d296d4c74e14bec4c750a20cefbcf751f83d0b Mon Sep 17 00:00:00 2001 From: rusefillc Date: Mon, 31 May 2021 05:27:51 -0400 Subject: [PATCH] my status --- unit_tests/tests/system/test_periodic_thread_controller.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unit_tests/tests/system/test_periodic_thread_controller.cpp b/unit_tests/tests/system/test_periodic_thread_controller.cpp index 53addd5ca7..06cbe1c086 100644 --- a/unit_tests/tests/system/test_periodic_thread_controller.cpp +++ b/unit_tests/tests/system/test_periodic_thread_controller.cpp @@ -45,6 +45,10 @@ thread_t *chThdCreateStatic(void *wsp, size_t size, taskq insta; taskq &tq = insta; + /** + * I do not understand what's going on here. Do allocate thread on stack and that would crash once method is over? + * how do we dynamically create new std::thread? + */ std::thread thr(func_wrapper, std::ref(tq));