libcopp
2.3.1
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Functions
_
a
c
d
f
g
h
i
m
o
p
r
s
t
w
y
Variables
_
a
b
c
d
e
f
g
h
l
m
o
p
r
s
t
u
w
x
Typedefs
Enumerations
Enumerator
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Typedefs
_
a
b
c
d
e
f
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerations
Enumerator
e
l
s
u
Related Symbols
_
d
e
i
l
o
r
s
w
Files
File List
Globals
All
_
b
c
e
g
j
l
m
o
p
r
s
t
u
w
Functions
b
c
g
j
m
o
p
r
s
t
Variables
b
c
g
m
s
t
Typedefs
Enumerations
Enumerator
c
e
Macros
_
c
l
m
s
t
u
w
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
include
libcotask
task_macros.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
7
#include <
libcopp/coroutine/coroutine_context_container.h
>
8
#include <
libcopp/coroutine/coroutine_context_fiber_container.h
>
9
#include <
libcopp/utils/errno.h
>
10
11
#include <
libcotask/core/standard_new_allocator.h
>
12
#include <
libcotask/impl/task_impl.h
>
13
14
// clang-format off
15
#include <
libcopp/utils/config/stl_include_prefix.h
>
// NOLINT(build/include_order)
16
// clang-format on
17
#include <stdint.h>
18
// clang-format off
19
#include <
libcopp/utils/config/stl_include_suffix.h
>
// NOLINT(build/include_order)
20
// clang-format on
21
22
LIBCOPP_COTASK_NAMESPACE_BEGIN
23
struct
LIBCOPP_COTASK_API_HEAD_ONLY
macro_coroutine
{
24
using
stack_allocator_type
= LIBCOPP_COPP_NAMESPACE_ID::allocator::default_statck_allocator;
25
using
coroutine_type
= LIBCOPP_COPP_NAMESPACE_ID::coroutine_context_container<stack_allocator_type>;
26
using
value_type
= int;
27
};
23
struct
LIBCOPP_COTASK_API_HEAD_ONLY
macro_coroutine
{
…
};
28
29
template
<
class
T>
30
struct
LIBCOPP_COPP_API_HEAD_ONLY
task_data_ptr_selector
{
31
using
type
=
typename
LIBCOPP_COPP_NAMESPACE_ID::future::poll_storage_ptr_selector<T>::type;
32
};
30
struct
LIBCOPP_COPP_API_HEAD_ONLY
task_data_ptr_selector
{
…
};
33
LIBCOPP_COTASK_NAMESPACE_END
coroutine_context_container.h
coroutine_context_fiber_container.h
errno.h
standard_new_allocator.h
stl_include_prefix.h
stl_include_suffix.h
macro_coroutine
Definition
task_macros.h:23
macro_coroutine::stack_allocator_type
LIBCOPP_COPP_NAMESPACE_ID::allocator::default_statck_allocator stack_allocator_type
Definition
task_macros.h:24
macro_coroutine::value_type
int value_type
Definition
task_macros.h:26
macro_coroutine::coroutine_type
LIBCOPP_COPP_NAMESPACE_ID::coroutine_context_container< stack_allocator_type > coroutine_type
Definition
task_macros.h:25
task_data_ptr_selector
Definition
task_macros.h:30
task_data_ptr_selector::type
typename LIBCOPP_COPP_NAMESPACE_ID::future::poll_storage_ptr_selector< T >::type type
Definition
task_macros.h:31
task_impl.h
Generated by
1.9.8