YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
set_deleter.hpp
Go to the documentation of this file.
1
#pragma once
2
3
namespace
yaclib::detail
{
4
5
struct
NopeBase
{};
6
7
struct
NopeDeleter
final
{
8
template
<
typename
Event>
9
static
void
Delete
(
Event
&)
noexcept
{
10
}
11
};
12
13
struct
SetDeleter
final
{
14
template
<
typename
Event>
15
static
void
Delete
(
Event
&
event
)
noexcept
{
16
event
.Set();
17
}
18
};
19
20
}
// namespace yaclib::detail
yaclib::detail
Definition
base_core.hpp:18
yaclib::MakeContract
Contract< V, E > MakeContract()
Creates related future and promise.
Definition
contract.hpp:25
yaclib::detail::NopeBase
Definition
set_deleter.hpp:5
yaclib::detail::NopeDeleter
Definition
set_deleter.hpp:7
yaclib::detail::NopeDeleter::Delete
static void Delete(Event &) noexcept
Definition
set_deleter.hpp:9
yaclib::detail::SetDeleter
Definition
set_deleter.hpp:13
yaclib::detail::SetDeleter::Delete
static void Delete(Event &event) noexcept
Definition
set_deleter.hpp:15
include
yaclib
util
detail
set_deleter.hpp
Generated by
1.9.8