YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
inject.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
5namespace yaclib {
6namespace detail {
7
8class Injector;
9
10} // namespace detail
11
12detail::Injector* GetInjector() noexcept;
13
15
16std::uint64_t GetInjectedCount() noexcept;
17
18} // namespace yaclib
19
20#define YACLIB_INJECT_FAULT(statement) \
21 yaclib::InjectFault(); \
22 statement; \
23 yaclib::InjectFault()
detail::Injector * GetInjector() noexcept
Definition inject.cpp:6
void InjectFault() noexcept
Definition inject.cpp:11
std::uint64_t GetInjectedCount() noexcept
Definition inject.cpp:15
Contract< V, E > MakeContract()
Creates related future and promise.
Definition contract.hpp:25