Public Member Functions |
| | Task (const char *name, FUNCPTR function, INT32 priority=kDefaultPriority, UINT32 stackSize=20000) |
| bool | Start (UINT32 arg0=0, UINT32 arg1=0, UINT32 arg2=0, UINT32 arg3=0, UINT32 arg4=0, UINT32 arg5=0, UINT32 arg6=0, UINT32 arg7=0, UINT32 arg8=0, UINT32 arg9=0) |
| bool | Restart () |
| bool | Stop () |
| bool | IsReady () |
| bool | IsSuspended () |
| bool | Suspend () |
| bool | Resume () |
| bool | Verify () |
| INT32 | GetPriority () |
| bool | SetPriority (INT32 priority) |
| const char * | GetName () |
| INT32 | GetID () |
|
virtual Error & | GetError () |
| | Retrieve the current error. Get the current error information associated with this sensor.
|
|
virtual const Error & | GetError () const |
| virtual void | SetErrnoError (const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) const |
| | Set error information associated with a C library call that set an error to the "errno" global variable.
|
| virtual void | SetImaqError (int success, const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) const |
| | Set the current error information associated from the nivision Imaq API.
|
| virtual void | SetError (Error::Code code, const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) const |
| | Set the current error information associated with this sensor.
|
| virtual void | SetWPIError (const char *errorMessage, const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) const |
| | Set the current error information associated with this sensor.
|
|
virtual void | CloneError (ErrorBase *rhs) const |
|
virtual void | ClearError () const |
| | Clear the current error information associated with this sensor.
|
| virtual bool | StatusIsFatal () const |
| | Check if the current error code represents a fatal error.
|
Additional Inherited Members |
|
static void | SetGlobalError (Error::Code code, const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) |
|
static void | SetGlobalWPIError (const char *errorMessage, const char *contextMessage, const char *filename, const char *function, UINT32 lineNumber) |
| static Error & | GetGlobalError () |
|
| ErrorBase () |
| | Initialize the instance status to 0 for now.
|
|
Error | m_error |
|
static SEM_ID | _globalErrorMutex = semMCreate(SEM_Q_PRIORITY | SEM_DELETE_SAFE | SEM_INVERSION_SAFE) |
|
static Error | _globalError |
WPI task is a wrapper for the native Task object. All WPILib tasks are managed by a static task manager for simplified cleanup.
Definition at line 17 of file Task.h.