libcopp  1.1.0
task_action_impl.h
Go to the documentation of this file.
1 /*
2  * task_action_impl.h
3  *
4  * Created on: 2014年4月1日
5  * Author: owent
6  *
7  * Released under the MIT license
8  */
9 
10 #ifndef COTASK_IMPL_TASK_ACTION_IMPL_H
11 #define COTASK_IMPL_TASK_ACTION_IMPL_H
12 #pragma once
13 
14 namespace cotask {
15 
16  namespace impl {
17 
18  class task_impl;
19 
21  public:
22  virtual ~task_action_impl() {}
23  virtual int operator()(void *) = 0;
24  virtual int on_finished(task_impl &) { return 0; }
25  };
26  } // namespace impl
27 } // namespace cotask
28 
29 
30 #endif /* _COTASK_IMPL_TASK_ACTION_IMPL_H_ */
virtual int operator()(void *)=0
virtual int on_finished(task_impl &)