win32/coil/Task.h
Go to the documentation of this file.
1 // -*- C++ -*-
19 #ifndef COIL_TASK_H
20 #define COIL_TASK_H
21 
22 #include <windows.h>
23 #include <process.h>
24 
25 
26 namespace coil
27 {
41  class Task
42  {
43  public:
59  Task();
60 
76  virtual ~Task();
77 
97  virtual int open(void* args = 0);
98 
118  virtual int close(unsigned long flags = 0);
119 
135  virtual int svc();
136 
152  virtual void activate();
153 
169  virtual int wait(void);
170 
186  virtual int suspend(void);
187 
203  virtual int resume(void);
204 
220  virtual void reset();
221 
237  virtual void finalize();
238 
258  static unsigned int WINAPI svc_run(void* args = 0);
259 
260  private:
261  int m_count;
262  HANDLE m_thread;
263  };
264 };
265 
266 #endif // COIL_TASK_H
virtual int svc()
Execute thread.
virtual ~Task()
Destructor.
#define WINAPI
Definition: RTC.h:74
virtual int wait(void)
Waiting for the thread terminate.
virtual int suspend(void)
Suspending the task.
virtual int resume(void)
Resuming the suspended task.
Task()
Constructor.
virtual void reset()
Reset of task count.
static void * svc_run(void *args=0)
Start thread Execution.
virtual int open(void *args=0)
Task open.
virtual int close(unsigned long flags=0)
Task close.
virtual void activate()
Create a thread.
virtual void finalize()
Finalizing the task.
Common Object Interface Layer.


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:26:00