Get priority of current task

Discussion to talk about software related topics only.
Post Reply
sulliwk06
Posts: 118
Joined: Tue Sep 17, 2013 7:14 am

Get priority of current task

Post by sulliwk06 »

I'm trying to figure out if there is some way to obtain the priority of the currently executing task so I can determine which task is calling a certain function.

Is there a function to do this? Or has someone done this on their own with some trick?
User avatar
pbreed
Posts: 1088
Joined: Thu Apr 24, 2008 3:58 pm

Re: Get priority of current task

Post by pbreed »

#include <ucos.h>

BYTE OSTaskID( void );
Post Reply