Zth (libzth)
arch_generic.h
Go to the documentation of this file.
1
#ifndef ZTH_CONTEXT_ARCH_GENERIC_H
2
#define ZTH_CONTEXT_ARCH_GENERIC_H
3
/*
4
* Zth (libzth), a cooperative userspace multitasking library.
5
* Copyright (C) 2019-2022 Jochem Rutgers
6
*
7
* This Source Code Form is subject to the terms of the Mozilla Public
8
* License, v. 2.0. If a copy of the MPL was not distributed with this
9
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
10
*/
11
12
#ifndef ZTH_CONTEXT_CONTEXT_H
13
# error This file must be included by libzth/context/context.h.
14
#endif
15
16
#ifdef __cplusplus
17
18
namespace
zth
{
19
namespace
impl {
20
21
template
<
typename
Impl>
22
class
ContextArch :
public
ContextBase<Impl> {
23
public
:
24
typedef
ContextBase<Impl>
base
;
25
26
protected
:
27
constexpr
explicit
ContextArch
(
ContextAttr
const
&
attr
) noexcept
28
:
base
(
attr
)
29
{}
30
};
31
32
}
// namespace impl
33
}
// namespace zth
34
#endif
// __cplusplus
35
#endif
// ZTH_CONTEXT_ARCH_GENERIC_H
zth::impl::ContextArch::ContextArch
constexpr ContextArch(ContextAttr const &attr) noexcept
Definition:
arch_generic.h:27
zth::impl::ContextArch::base
ContextBase< Impl > base
Definition:
arch_generic.h:24
zth::impl::ContextBase
Base class of the Context.
Definition:
context.h:71
zth::impl::ContextBase::attr
ContextAttr & attr() noexcept
Return the context attributes, requested by the user.
Definition:
context.h:146
zth
Definition:
allocator.h:23
zth::ContextAttr
Definition:
context.h:70
include
libzth
context
arch_generic.h
Generated by
1.9.1