sipxportlib  Version 3.3
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
OsTaskWnt Class Referenceabstract

#include <OsTaskWnt.h>

Inheritance diagram for OsTaskWnt:
Inheritance graph
[legend]
Collaboration diagram for OsTaskWnt:
Collaboration graph
[legend]

Public Member Functions

 OsTaskWnt (const UtlString &name="", void *pArg=NULL, const int priority=DEF_PRIO, const int options=DEF_OPTIONS, const int stackSize=DEF_STACKSIZE)
 
virtual ~OsTaskWnt ()
 
virtual OsStatus deleteForce (void)
 enumcode: UNINITIALIZED - no low-level task, no name DB entries enumcode: STARTED - low-level task and name DB entries exist enumcode: SHUTTING_DOWN - requested low-level task shutdown enumcode: SHUT_DOWN - no low-level task, name DB entries still exist More...
 
virtual UtlBoolean restart (void)
 
virtual OsStatus resume (void)
 
virtual UtlBoolean start (void)
 
virtual OsStatus suspend (void)
 
virtual OsStatus setErrno (int errno)
 
virtual OsStatus setOptions (int options)
 
virtual OsStatus setPriority (int priority)
 
virtual OsStatus varAdd (int *pVar)
 
virtual OsStatus varDelete (int *pVar)
 
virtual OsStatus varSet (int *pVar, int value)
 
virtual OsStatus getErrno (int &rErrno)
 
virtual int getOptions (void)
 
virtual OsStatus getPriority (int &rPriority)
 
virtual OsStatus varGet (void)
 
virtual OsStatus id (OsTaskId_t &rId)
 
virtual UtlBoolean isSuspended (void)
 
- Public Member Functions inherited from OsTaskBase
virtual void requestShutdown (void)
 
virtual void setUserData (int data)
 
virtual OsStatus syslog (const OsSysLogFacility facility, const OsSysLogPriority priority, const char *format,...)
 
virtual void * getArg (void)
 
virtual const UtlStringgetName (void)
 
virtual int getUserData (void)
 
virtual UtlBoolean isReady (void)
 
virtual UtlBoolean isShutDown (void)
 
virtual UtlBoolean isShuttingDown (void)
 
virtual UtlBoolean isStarted (void)
 
virtual UtlBoolean isUnInitialized (void)
 

Static Public Member Functions

static OsStatus delay (const int milliSecs)
 
static OsStatus safe (void)
 
static OsStatus unsafe (void)
 
static void yield (void)
 
static OsTaskWntgetCurrentTask (void)
 
static OsStatus getCurrentTaskId (int &rid)
 
static OsTaskWntgetTaskByName (const UtlString &taskName)
 
static OsTaskWntgetTaskById (const int taskId)
 
static void getIdString (UtlString &, DWORD)
 
- Static Public Member Functions inherited from OsTaskBase
static OsStatus delay (const int milliSecs)
 param: facility - Defines the facility responsible for adding the More...
 
static OsStatus safe (void)
 
static OsStatus unsafe (void)
 
static void yield (void)
 
static OsTaskBasegetCurrentTask (void)
 
static OsStatus getCurrentTaskId (int &rid)
 
static OsTaskBasegetTaskByName (const UtlString &taskName)
 
static OsTaskBasegetTaskById (const int taskId)
 

Protected Member Functions

virtual int run (void *pArg)=0
 
- Protected Member Functions inherited from OsTaskBase
 OsTaskBase (const UtlString &name, void *pArg, const int priority, const int options, const int stackSize)
 
virtual ~OsTaskBase ()
 
virtual UtlBoolean waitUntilShutDown (int milliSecToWait=20000)
 
virtual void ackShutdown (void)
 

Additional Inherited Members

- Public Types inherited from OsTaskBase
enum  TaskState { UNINITIALIZED, STARTED, SHUTTING_DOWN, SHUT_DOWN }
 
- Static Public Attributes inherited from OsTaskBase
static const int DEF_OPTIONS = 0
 
static const int DEF_PRIO = 128
 
static const int DEF_STACKSIZE = 256*1024
 
static const UtlString TASK_PREFIX
 
static const UtlString TASKID_PREFIX
 
static OsAtomicInt taskCount
 
- Protected Attributes inherited from OsTaskBase
OsMutex mDataGuard
 
UtlString mName
 
volatile TaskState mState
 

Constructor & Destructor Documentation

OsTaskWnt ( const UtlString name = "",
void *  pArg = NULL,
const int  priority = DEF_PRIO,
const int  options = DEF_OPTIONS,
const int  stackSize = DEF_STACKSIZE 
)
~OsTaskWnt ( )
virtual

Member Function Documentation

OsStatus deleteForce ( void  )
virtual

enumcode: UNINITIALIZED - no low-level task, no name DB entries enumcode: STARTED - low-level task and name DB entries exist enumcode: SHUTTING_DOWN - requested low-level task shutdown enumcode: SHUT_DOWN - no low-level task, name DB entries still exist

Implements OsTaskBase.

UtlBoolean restart ( void  )
virtual

Implements OsTaskBase.

OsStatus resume ( void  )
virtual

Implements OsTaskBase.

UtlBoolean start ( void  )
virtual

Implements OsTaskBase.

OsStatus suspend ( void  )
virtual

Implements OsTaskBase.

OsStatus setErrno ( int  errno)
virtual

Implements OsTaskBase.

OsStatus setOptions ( int  options)
virtual

Implements OsTaskBase.

OsStatus setPriority ( int  priority)
virtual

Implements OsTaskBase.

OsStatus varAdd ( int *  pVar)
virtual

Implements OsTaskBase.

OsStatus varDelete ( int *  pVar)
virtual

Implements OsTaskBase.

OsStatus varSet ( int *  pVar,
int  value 
)
virtual

Implements OsTaskBase.

OsStatus delay ( const int  milliSecs)
static
OsStatus safe ( void  )
static
OsStatus unsafe ( void  )
static
void yield ( void  )
static
OsTaskWnt * getCurrentTask ( void  )
static
OsStatus getCurrentTaskId ( int &  rid)
static
OsTaskWnt * getTaskByName ( const UtlString taskName)
static
OsTaskWnt * getTaskById ( const int  taskId)
static
OsStatus getErrno ( int &  rErrno)
virtual

Implements OsTaskBase.

int getOptions ( void  )
virtual

Implements OsTaskBase.

OsStatus getPriority ( int &  rPriority)
virtual

Implements OsTaskBase.

OsStatus varGet ( void  )
virtual

Implements OsTaskBase.

static void getIdString ( UtlString ,
DWORD   
)
static
OsStatus id ( OsTaskId_t &  rId)
virtual

Implements OsTaskBase.

UtlBoolean isSuspended ( void  )
virtual

Implements OsTaskBase.

virtual int run ( void *  pArg)
protectedpure virtual

Implements OsTaskBase.