YACLib
C++ library for concurrent tasks execution
|
#include <injector.hpp>
Public Member Functions | |
void | MaybeInject () noexcept |
std::uint32_t | GetState () const noexcept |
void | SetState (std::uint32_t state) noexcept |
void | Disable () noexcept |
void | Enable () noexcept |
Static Public Member Functions | |
static void | SetFrequency (std::uint32_t freq) noexcept |
static void | SetSleepTime (std::uint32_t ns) noexcept |
static std::uint32_t | GetSleepTime () noexcept |
static std::uint64_t | GetInjectedCount () noexcept |
Definition at line 9 of file injector.hpp.
|
noexcept |
Definition at line 65 of file injector.cpp.
|
noexcept |
Definition at line 69 of file injector.cpp.
|
staticnoexcept |
Definition at line 53 of file injector.cpp.
References yaclib::detail::sInjectedCount.
Referenced by yaclib::GetInjectedCount().
|
staticnoexcept |
Definition at line 49 of file injector.cpp.
References yaclib::detail::sSleepTime.
Referenced by yaclib::GetFaultSleepTime().
|
noexcept |
Definition at line 57 of file injector.cpp.
Referenced by yaclib::fiber::GetInjectorState().
|
noexcept |
Definition at line 13 of file injector.cpp.
References yaclib::detail::GetRandNumber(), yaclib::detail::sInjectedCount, and yaclib::detail::sSleepTime.
Referenced by yaclib::InjectFault().
|
staticnoexcept |
Definition at line 41 of file injector.cpp.
References yaclib::MakeContract(), and yaclib::detail::sYieldFrequency.
Referenced by yaclib::SetFaultFrequency().
|
staticnoexcept |
Definition at line 45 of file injector.cpp.
References yaclib::MakeContract(), and yaclib::detail::sSleepTime.
Referenced by yaclib::SetFaultSleepTime().
|
noexcept |
Definition at line 61 of file injector.cpp.
References yaclib::MakeContract().
Referenced by yaclib::fiber::SetInjectorState().