Page 1 of 1

Get handle of this task?

Posted: Wed Jan 26, 2022 6:37 am
by RichPiano
I can't seem to find a way to get the handle of the currently running task (the one that I'm calling a function out of).

I want to have an API where I call a function and the function reads out the task context and puts itself (its handle) into an std::map. Is this possible somehow?

Re: Get handle of this task?

Posted: Wed Jan 26, 2022 9:01 am
by Victoria Nope
You're looking for the xTaskGetCurrentTaskHandle function.

Re: Get handle of this task?

Posted: Sat Feb 12, 2022 10:11 am
by RichPiano
Thank you it seems to work well! :)