Page 1 of 1

std::thread stack size

Posted: Wed Oct 18, 2017 9:36 pm
by permal
Hi,

Now that std::thread can be used instead of the native FreeRTOS API, how do you set the stack size and priority? make menuconfig can set a default, but I don't want all my threads to use the same stack size and priority.

If they still are FreeRTOS threads under the hood, I suppose the priority could be set after creation using FreeRTOS API, but what about the stack?

Re: std::thread stack size

Posted: Wed Oct 18, 2017 11:14 pm
by kolban
There may already be an open issue on this one ... is this close:

https://github.com/espressif/esp-idf/issues/988

Re: std::thread stack size

Posted: Thu Oct 19, 2017 6:49 am
by permal
kolban wrote:There may already be an open issue on this one ... is this close:

https://github.com/espressif/esp-idf/issues/988
Indeed, that's what I'm looking for.