Is it OK to start a task from a function not declared with the __task-keyword?
I'm using a third party library that creates a couple of threads, do I need to go through the code and find the functions and add __task to the declaration of the function for this to work properly?
Best regards /Åke
You don't have to, but it is useful for maintenance purposes. Also, since
#define __task __declspec(noreturn)
it can make the compiler generate more efficient code.
I see, thanks for the quick response!
The __task keyword is not for a function that _creates_ a new task.
It is for the root function of a new task.