Public Member Functions | Static Public Member Functions | Private Attributes
coil::Task Class Reference

Task class. More...

#include <Task.h>

Inheritance diagram for coil::Task:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void activate ()
 Create a thread.
virtual void activate ()
 Create a thread.
virtual int close (unsigned long flags=0)
 Task close.
virtual int close (unsigned long flags=0)
 Task close.
virtual void finalize ()
virtual void finalize ()
virtual int open (void *args=0)
 Task open.
virtual int open (void *args=0)
 Task open.
virtual void reset ()
 Reset of task count.
virtual void reset ()
 Reset of task count.
virtual int resume (void)
 Resuming the suspended task.
virtual int resume (void)
 Resuming the suspended task.
virtual int suspend (void)
 Suspending the task.
virtual int suspend (void)
 Suspending the task.
virtual int svc ()
 Execute thread.
virtual int svc ()
 Execute thread.
 Task ()
 Constructor.
 Task ()
 Constructor.
virtual int wait (void)
 Waiting for the thread terminate.
virtual int wait (void)
 Waiting for the thread terminate.
virtual ~Task ()
 Destructor.
virtual ~Task ()
 Destructor.

Static Public Member Functions

static void * svc_run (void *args=0)
 Start thread Execution.
static unsigned int WINAPI svc_run (void *args=0)
 Start thread Execution.

Private Attributes

void * m_args
pthread_attr_t m_attr
int m_count
pthread_t m_thread
HANDLE m_thread

Detailed Description

Task class.

Definition at line 39 of file posix/coil/Task.h.


Constructor & Destructor Documentation

Constructor.

Constructor

Definition at line 31 of file posix/coil/Task.cpp.

coil::Task::~Task ( ) [virtual]

Destructor.

Destructor

Definition at line 44 of file posix/coil/Task.cpp.

Constructor.

Constructor

virtual coil::Task::~Task ( ) [virtual]

Destructor.

Destructor


Member Function Documentation

void coil::Task::activate ( ) [virtual]

Create a thread.

Create a thread

Reimplemented in coil::PeriodicTaskBase, and coil::PeriodicTask.

Definition at line 92 of file posix/coil/Task.cpp.

virtual void coil::Task::activate ( ) [virtual]

Create a thread.

Create a thread

Reimplemented in coil::PeriodicTaskBase, and coil::PeriodicTask.

int coil::Task::close ( unsigned long  flags = 0) [virtual]

Task close.

Task close

Parameters:
flagsFlags

Reimplemented in RTC::Manager::OrbRunner, and RTC::PeriodicExecutionContext.

Definition at line 68 of file posix/coil/Task.cpp.

virtual int coil::Task::close ( unsigned long  flags = 0) [virtual]

Task close.

Task close

Parameters:
flagsFlags

Reimplemented in RTC::Manager::OrbRunner, and RTC::PeriodicExecutionContext.

void coil::Task::finalize ( ) [virtual]
virtual void coil::Task::finalize ( ) [virtual]
int coil::Task::open ( void *  args = 0) [virtual]

Task open.

Task open

Parameters:
argsArguments

Reimplemented in RTC::Manager::Terminator, RTC::Manager::OrbRunner, RTC::PeriodicExecutionContext, and coil::Timer.

Definition at line 56 of file posix/coil/Task.cpp.

virtual int coil::Task::open ( void *  args = 0) [virtual]

Task open.

Task open

Parameters:
argsArguments

Reimplemented in RTC::Manager::Terminator, RTC::Manager::OrbRunner, RTC::PeriodicExecutionContext, and coil::Timer.

void coil::Task::reset ( ) [virtual]

Reset of task count.

Reset of task count

Definition at line 152 of file posix/coil/Task.cpp.

virtual void coil::Task::reset ( ) [virtual]

Reset of task count.

Reset of task count

int coil::Task::resume ( void  ) [virtual]

Resuming the suspended task.

Resuming the suspended task

Reimplemented in coil::PeriodicTaskBase, and coil::PeriodicTask.

Definition at line 140 of file posix/coil/Task.cpp.

virtual int coil::Task::resume ( void  ) [virtual]

Resuming the suspended task.

Resuming the suspended task

Reimplemented in coil::PeriodicTaskBase, and coil::PeriodicTask.

int coil::Task::suspend ( void  ) [virtual]

Suspending the task.

Suspending the task

Reimplemented in coil::PeriodicTaskBase, and coil::PeriodicTask.

Definition at line 128 of file posix/coil/Task.cpp.

virtual int coil::Task::suspend ( void  ) [virtual]

Suspending the task.

Suspending the task

Reimplemented in coil::PeriodicTaskBase, and coil::PeriodicTask.

int coil::Task::svc ( void  ) [virtual]
virtual int coil::Task::svc ( ) [virtual]
unsigned int WINAPI coil::Task::svc_run ( void *  args = 0) [static]

Start thread Execution.

Start thread Execution

Parameters:
argsThread arguments

Definition at line 176 of file posix/coil/Task.cpp.

static unsigned int WINAPI coil::Task::svc_run ( void *  args = 0) [static]

Start thread Execution.

Start thread Execution

Parameters:
argsThread arguments
int coil::Task::wait ( void  ) [virtual]

Waiting for the thread terminate.

Waiting for the thread terminate

Definition at line 111 of file posix/coil/Task.cpp.

virtual int coil::Task::wait ( void  ) [virtual]

Waiting for the thread terminate.

Waiting for the thread terminate


Member Data Documentation

void* coil::Task::m_args [private]

Definition at line 262 of file posix/coil/Task.h.

pthread_attr_t coil::Task::m_attr [private]

Definition at line 261 of file posix/coil/Task.h.

int coil::Task::m_count [private]

Definition at line 259 of file posix/coil/Task.h.

pthread_t coil::Task::m_thread [private]

Definition at line 260 of file posix/coil/Task.h.

HANDLE coil::Task::m_thread [private]

Definition at line 262 of file win32/coil/Task.h.


The documentation for this class was generated from the following files:


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sat Jun 8 2019 18:49:10