9 TaskRegistry* Task::s_taskRegistry =
nullptr;
13 return Task::s_numTasks;
22 return this->m_started;
26 this->m_started = started;
30 return this->m_suspendedOnPurpose;
34 return this->m_handle;
39 Task::s_taskRegistry = registry;
47 return this->
start(name, routine, arg, priority, stackSize, cpuAffinity, identifier);
PlatformPointerCastType POINTER_CAST
PlatformIntType NATIVE_INT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
C++-compatible configuration header for fprime configuration.
bool wasSuspended()
returns whether or not task was suspended on purpose
I32 getIdentifier()
get the identifier for the task
static const NATIVE_UINT_TYPE TASK_DEFAULT
bool isStarted()
check to see if task is started
static void registerTaskRegistry(TaskRegistry *registry)
void setStarted(bool started)
set task to started when thread is fully up. Avoids a VxWorks race condition.
POINTER_CAST getRawHandle()
TaskStatus start(const Fw::StringBase &name, taskRoutine routine, void *arg, NATIVE_UINT_TYPE priority=TASK_DEFAULT, NATIVE_UINT_TYPE stackSize=TASK_DEFAULT, NATIVE_UINT_TYPE cpuAffinity=TASK_DEFAULT, NATIVE_UINT_TYPE identifier=TASK_DEFAULT)
start the task
static NATIVE_INT_TYPE getNumTasks()
TaskRegistry()
constructor for task registry
virtual ~TaskRegistry()
destructor for task registry