libcopp
2.3.1
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
};
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
};
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