my status

This commit is contained in:
rusefillc 2021-05-31 05:27:51 -04:00
parent 2bbd6e7cdc
commit 33d296d4c7
1 changed files with 4 additions and 0 deletions

View File

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