YACLib
C++ library for concurrent tasks execution
|
#include <cstdint>
Go to the source code of this file.
Namespaces | |
namespace | yaclib |
namespace | yaclib::fiber |
Functions | |
void | yaclib::SetFaultFrequency (std::uint32_t freq) noexcept |
Sets frequency with which fault will be injected. | |
void | yaclib::SetSeed (std::uint32_t seed) noexcept |
Sets seed for random, which will be used when deciding when to yield, for fibers scheduler and random wrapper for tests. | |
void | yaclib::SetFaultSleepTime (std::uint32_t ns) noexcept |
Sets sleep time if sleep is used instead of yield for interrupting thread execution for fault injection. | |
std::uint32_t | yaclib::GetFaultSleepTime () noexcept |
void | yaclib::SetAtomicFailFrequency (std::uint32_t k) noexcept |
Sets frequency with which compare_exchange_weak would fail. | |
void | yaclib::fiber::SetFaultTickLength (std::uint32_t ns) noexcept |
Sets the amount of time to be added to fiber's scheduler time after each schedule cycle. | |
void | yaclib::fiber::SetFaultRandomListPick (std::uint32_t k) noexcept |
Sets the length of scheduler queue prefix and suffix from which the next schedule candidate will be chosen. | |
void | yaclib::fiber::SetStackSize (std::uint32_t pages) noexcept |
Sets fiber stack size for fault injection in pages. | |
void | yaclib::fiber::SetStackCacheSize (std::uint32_t c) noexcept |
Sets fiber stack cache size for fault injection. | |
void | yaclib::fiber::SetHardwareConcurrency (std::uint32_t c) noexcept |
Sets hardware_concurrency in fiber based execution. | |
std::uint64_t | yaclib::fiber::GetFaultRandomCount () noexcept |
void | yaclib::fiber::ForwardToFaultRandomCount (std::uint64_t random_count) noexcept |
Forwards random count for fiber-based execution to supplied one. | |
std::uint32_t | yaclib::fiber::GetInjectorState () noexcept |
void | yaclib::fiber::SetInjectorState (std::uint32_t state) noexcept |
Sets injector state to the supplied one. | |