Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

task.h File Reference

#include "ndk.h"
#include "array.h"
#include <errorCodes.h>
#include <types.h>
#include <messageQueue.h>

Go to the source code of this file.

Typedefs

typedef enum _TaskType TaskType
typedef enum _TaskState TaskState
typedef enum _TaskWaitingOn TaskWaitingOn
typedef _Task * Task

Enumerations

enum  _TaskType { TaskTypeOS = 0, TaskTypeUser }
enum  _TaskState { TaskStateDead, TaskStateAlive, TaskStateWaiting, TaskStateTimedOut }
enum  _TaskWaitingOn { TaskWaitingOnMutex, TaskWaitingOnSemaphore, TaskWaitingOnDelay }

Functions

ErrorCode taskCreate (Task *task, Task parent, String name, void(*entry)(void *), void *argument, TaskType type, uint32 stackSize, uint8 priority)
ErrorCode taskDestroy (Task *task)
ErrorCode taskGetCurrent (Task *task)
ErrorCode taskGetState (Task task, TaskState *state)
ErrorCode taskSetState (Task task, TaskState state)
ErrorCode taskGetMessageQueue (Task task, MessageQueue *queue)
ErrorCode taskSetTimeout (Task task, Timeout to)
ErrorCode taskForceSwitch (void)
ErrorCode taskPrintStackTrace (Task task)
ErrorCode taskGetStackPointer (Task task, Pointer *ptr)
ErrorCode taskGetStackBase (Task task, Pointer *ptr)
ErrorCode taskGetStackSize (Task task, uint32 *size)
ErrorCode taskGetStackDirection (int32 *direction)


Generated on Wed Mar 22 20:36:34 2006 for ndk by  doxygen 1.4.4