libcopp  2.2.0
task_action_impl.h
Go to the documentation of this file.
1 // Copyright 2023 owent
2 
3 #pragma once
4 
5 #include <libcopp/utils/config/libcopp_build_features.h>
6 
9 
10 LIBCOPP_COTASK_NAMESPACE_BEGIN
11 
12 namespace impl {
13 
14 class task_impl;
15 
16 class LIBCOPP_COTASK_API task_action_impl {
17  public:
19  virtual ~task_action_impl();
20 
22  task_action_impl &operator=(const task_action_impl &);
23 
25  task_action_impl &operator=(const task_action_impl &&);
26 
27  virtual int operator()(void *) = 0;
28  virtual int on_finished(task_impl &);
29 };
30 } // namespace impl
31 LIBCOPP_COTASK_NAMESPACE_END
virtual int operator()(void *)=0