#include <Task.h>
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 |
Task class.
Definition at line 39 of file posix/coil/Task.h.
coil::Task::Task | ( | ) |
coil::Task::~Task | ( | ) | [virtual] |
coil::Task::Task | ( | ) |
Constructor.
Constructor
virtual coil::Task::~Task | ( | ) | [virtual] |
Destructor.
Destructor
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] |
int coil::Task::close | ( | unsigned long | flags = 0 | ) | [virtual] |
Task close.
Task close
flags | Flags |
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
flags | Flags |
Reimplemented in RTC::Manager::OrbRunner, and RTC::PeriodicExecutionContext.
void coil::Task::finalize | ( | ) | [virtual] |
Finalizing the task.
Reimplemented in coil::Async_ref_t< Object, Func >, coil::PeriodicTaskBase, coil::Async_t< Object, Func >, and coil::PeriodicTask.
Definition at line 164 of file posix/coil/Task.cpp.
virtual void coil::Task::finalize | ( | ) | [virtual] |
Finalizing the task.
Reimplemented in coil::Async_ref_t< Object, Func >, coil::PeriodicTaskBase, coil::Async_t< Object, Func >, and coil::PeriodicTask.
int coil::Task::open | ( | void * | args = 0 | ) | [virtual] |
Task open.
Task open
args | Arguments |
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
args | Arguments |
Reimplemented in RTC::Manager::Terminator, RTC::Manager::OrbRunner, RTC::PeriodicExecutionContext, and coil::Timer.
void coil::Task::reset | ( | ) | [virtual] |
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] |
Execute thread.
Execute thread
Reimplemented in RTC::Manager::Terminator, RTC::Manager::OrbRunner, Tests::ManagerTests::InvokerMock, coil::Async_ref_t< Object, Func >, coil::PeriodicTask, Logger::LogOutCreator, coil::Async_t< Object, Func >, RTC::PeriodicExecutionContext, OpenRTM::RTPreemptEC, Time::TimeTests, coil::Timer, RTC::ExtTrigExecutionContext, Guard::GuardTests, Mutex::MutexTests::TestTaskTrylock, Task::TaskTests, Threaded, RTC::OpenHRPExecutionContext, Condition::ConditionCheckTask, Time::TimeTests::TestTimeTask, Logger::LogCreator, Guard::GuardTests::TestGuardTask, Mutex::MutexTests::TestTaskLock, and RTC::ArtExecutionContext.
Definition at line 80 of file posix/coil/Task.cpp.
virtual int coil::Task::svc | ( | ) | [virtual] |
Execute thread.
Execute thread
Reimplemented in RTC::Manager::Terminator, RTC::Manager::OrbRunner, Tests::ManagerTests::InvokerMock, coil::Async_ref_t< Object, Func >, coil::PeriodicTask, Logger::LogOutCreator, coil::Async_t< Object, Func >, RTC::PeriodicExecutionContext, OpenRTM::RTPreemptEC, Time::TimeTests, coil::Timer, RTC::ExtTrigExecutionContext, Guard::GuardTests, Mutex::MutexTests::TestTaskTrylock, Task::TaskTests, Threaded, RTC::OpenHRPExecutionContext, Condition::ConditionCheckTask, Time::TimeTests::TestTimeTask, Logger::LogCreator, Guard::GuardTests::TestGuardTask, Mutex::MutexTests::TestTaskLock, and RTC::ArtExecutionContext.
unsigned int WINAPI coil::Task::svc_run | ( | void * | args = 0 | ) | [static] |
Start thread Execution.
Start thread Execution
args | Thread 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
args | Thread 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
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.