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));