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?
Get handle of this task?
-
- Posts: 75
- Joined: Fri Dec 04, 2020 9:56 pm
Re: Get handle of this task?
You're looking for the xTaskGetCurrentTaskHandle function.
Re: Get handle of this task?
Thank you it seems to work well!
Who is online
Users browsing this forum: Baidu [Spider] and 128 guests