#include <Task.h>
Public Member Functions | |
virtual void | activate () |
Create a thread. More... | |
virtual void | activate () |
Create a thread. More... | |
virtual int | close (unsigned long flags=0) |
Task close. More... | |
virtual int | close (unsigned long flags=0) |
Task close. More... | |
virtual void | finalize () |
Finalizing the task. More... | |
virtual void | finalize () |
Finalizing the task. More... | |
virtual int | open (void *args=0) |
Task open. More... | |
virtual int | open (void *args=0) |
Task open. More... | |
virtual void | reset () |
Reset of task count. More... | |
virtual void | reset () |
Reset of task count. More... | |
virtual int | resume (void) |
Resuming the suspended task. More... | |
virtual int | resume (void) |
Resuming the suspended task. More... | |
virtual int | suspend (void) |
Suspending the task. More... | |
virtual int | suspend (void) |
Suspending the task. More... | |
virtual int | svc () |
Execute thread. More... | |
virtual int | svc () |
Execute thread. More... | |
Task () | |
Constructor. More... | |
Task () | |
Constructor. More... | |
virtual int | wait (void) |
Waiting for the thread terminate. More... | |
virtual int | wait (void) |
Waiting for the thread terminate. More... | |
virtual | ~Task () |
Destructor. More... | |
virtual | ~Task () |
Destructor. More... | |
Static Public Member Functions | |
static void * | svc_run (void *args=0) |
Start thread Execution. More... | |
static unsigned int WINAPI | svc_run (void *args=0) |
Start thread Execution. More... | |
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 | ( | ) |
|
virtual |
coil::Task::Task | ( | ) |
Constructor.
Constructor
|
virtual |
Destructor.
Destructor
|
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 |
|
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 |
Task close.
Task close
flags | Flags |
Reimplemented in RTC::Manager::OrbRunner, and RTC::PeriodicExecutionContext.
|
virtual |
Finalizing the task.
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 |
Finalizing the task.
Finalizing the task.
Reimplemented in coil::Async_ref_t< Object, Func >, coil::PeriodicTaskBase, coil::Async_t< Object, Func >, and coil::PeriodicTask.
|
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 |
Task open.
Task open
args | Arguments |
Reimplemented in RTC::Manager::Terminator, RTC::Manager::OrbRunner, RTC::PeriodicExecutionContext, and coil::Timer.
|
virtual |
|
virtual |
Reset of task count.
Reset of task count
|
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 |
Resuming the suspended task.
Resuming the suspended task
Reimplemented in coil::PeriodicTaskBase, and coil::PeriodicTask.
|
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 |
Suspending the task.
Suspending the task
Reimplemented in coil::PeriodicTaskBase, and coil::PeriodicTask.
|
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 |
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.
|
static |
Start thread Execution.
Start thread Execution
args | Thread arguments |
Definition at line 176 of file posix/coil/Task.cpp.
|
static |
Start thread Execution.
Start thread Execution
args | Thread arguments |
|
virtual |
Waiting for the thread terminate.
Waiting for the thread terminate
Definition at line 111 of file posix/coil/Task.cpp.
|
virtual |
Waiting for the thread terminate.
Waiting for the thread terminate
|
private |
Definition at line 262 of file posix/coil/Task.h.
|
private |
Definition at line 261 of file posix/coil/Task.h.
|
private |
Definition at line 259 of file posix/coil/Task.h.
|
private |
Definition at line 260 of file posix/coil/Task.h.
|
private |
Definition at line 262 of file win32/coil/Task.h.