my status
This commit is contained in:
parent
2bbd6e7cdc
commit
33d296d4c7
|
@ -45,6 +45,10 @@ thread_t *chThdCreateStatic(void *wsp, size_t size,
|
||||||
taskq insta;
|
taskq insta;
|
||||||
|
|
||||||
taskq &tq = 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));
|
std::thread thr(func_wrapper, std::ref(tq));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue