std::thread stack size

permal
Posts: 384
Joined: Sun May 14, 2017 5:36 pm

std::thread stack size

Postby permal » Wed Oct 18, 2017 9:36 pm

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?

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: std::thread stack size

Postby kolban » Wed Oct 18, 2017 11:14 pm

There may already be an open issue on this one ... is this close:

https://github.com/espressif/esp-idf/issues/988
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

permal
Posts: 384
Joined: Sun May 14, 2017 5:36 pm

Re: std::thread stack size

Postby permal » Thu Oct 19, 2017 6:49 am

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.

Who is online

Users browsing this forum: Majestic-12 [Bot], MicroController and 112 guests