10 #include "ErrorBase.h"
20 static const uint32_t kDefaultPriority = 101;
21 static const int32_t kInvalidTaskID = -1;
23 Task(
const char* name, FUNCPTR
function, int32_t priority = kDefaultPriority, uint32_t stackSize = 20000);
26 bool Start(uint32_t arg0 = 0, uint32_t arg1 = 0, uint32_t arg2 = 0, uint32_t arg3 = 0, uint32_t arg4 = 0,
27 uint32_t arg5 = 0, uint32_t arg6 = 0, uint32_t arg7 = 0, uint32_t arg8 = 0, uint32_t arg9 = 0);
50 bool HandleError(STATUS results);
51 DISALLOW_COPY_AND_ASSIGN(
Task);
int32_t GetID()
Definition: Task.cpp:175
const char * GetName()
Definition: Task.cpp:166
bool SetPriority(int32_t priority)
Definition: Task.cpp:156
Definition: ErrorBase.h:37
bool Suspend()
Definition: Task.cpp:114
bool Resume()
Definition: Task.cpp:123
bool IsReady()
Definition: Task.cpp:96
Task(const char *name, FUNCPTR function, int32_t priority=kDefaultPriority, uint32_t stackSize=20000)
Definition: Task.cpp:26
bool Stop()
Definition: Task.cpp:81
int32_t GetPriority()
Definition: Task.cpp:141
bool IsSuspended()
Definition: Task.cpp:105
bool Verify()
Definition: Task.cpp:132
bool Start(uint32_t arg0=0, uint32_t arg1=0, uint32_t arg2=0, uint32_t arg3=0, uint32_t arg4=0, uint32_t arg5=0, uint32_t arg6=0, uint32_t arg7=0, uint32_t arg8=0, uint32_t arg9=0)
Definition: Task.cpp:52
bool Restart()
Definition: Task.cpp:72