libcopp  1.1.0
task_macros.h
Go to the documentation of this file.
1 /*
2  * task_macros.h
3  *
4  * Created on: 2014年5月6日
5  * Author: owent
6  *
7  * Released under the MIT license
8  */
9 
10 #ifndef COTASK_TASK_MACROS_H
11 #define COTASK_TASK_MACROS_H
12 
13 #pragma once
14 
15 #include <stdint.h>
16 
18 #include <libcopp/utils/errno.h>
19 #include <libcopp/utils/features.h>
20 
21 
25 
26 
27 namespace cotask {
28  struct macro_coroutine {
29  typedef copp::allocator::default_statck_allocator stack_allocator_t;
31  };
32 
33  struct macro_task {
34  typedef uint64_t id_t;
36  };
37 }
38 
39 #endif /* _COTASK_THIS_TASK_H_ */
copp::allocator::default_statck_allocator stack_allocator_t
Definition: task_macros.h:29
copp::coroutine_context_container< stack_allocator_t > coroutine_t
Definition: task_macros.h:30
coroutine container contain stack context, stack allocator and runtime fcontext
core::standard_int_id_allocator< uint64_t > id_allocator_t
Definition: task_macros.h:35