Zth (libzth)
|
#include <config.h>
Classes | |
struct | Allocator |
Allocator type. More... | |
Static Public Member Functions | |
constexpr static double | MinTimeslice_s () |
Minimum time slice before zth::yield() actually yields. More... | |
Static Public Attributes | |
static bool const | Debug |
This is a debug build when set to true . More... | |
static bool const | EnableAssert |
When true , enable zth_assert(). More... | |
static bool const | EnableFullAssert |
Show failing expression in case of a failed assert. More... | |
static bool const | EnableThreads |
Add (Worker) thread support when true . More... | |
static bool const | EnableDebugPrint |
Actually do print the debug output. More... | |
static bool const | SupportDebugPrint |
Add support to enable debug output prints. More... | |
static bool const | EnableColorLog = true |
Enable colored output. More... | |
static int const | Print_banner = 12 |
ANSI color used by zth_dbg(). Printing this category is disabled when set to 0. More... | |
static int const | Print_worker = 5 |
static int const | Print_waiter = 1 |
static int const | Print_io = 9 |
static int const | Print_perf = 6 |
static int const | Print_fiber = 10 |
static int const | Print_context = 2 |
static int const | Print_sync = 11 |
static int const | Print_list = 8 |
static int const | Print_zmq = 9 |
static int const | Print_fsm = 14 |
static int const | Print_thread = 3 |
static size_t const | DefaultFiberStackSize = 0x20000 |
Default fiber stack size in bytes. More... | |
static bool const | EnableStackGuard = Debug |
When true , enable stack guards. More... | |
static bool const | EnableStackWaterMark = Debug |
When true , enable stack watermark to detect maximum stack usage. More... | |
static bool const | ContextSignals = false |
Take POSIX signal into account when doing a context switch. More... | |
static int const | TimesliceOverrunFactorReportThreshold = 4 |
Print an overrun reported when MinTimeslice_s() is exceeded by this factor. More... | |
static bool const | CheckTimesliceOverrun = Debug |
Check time slice overrun at every context switch. More... | |
static bool const | NamedSynchronizer = SupportDebugPrint && Print_sync > 0 |
Save names for all zth::Synchronizer instances. More... | |
static size_t const | PerfEventBufferSize = 128 |
Buffer size for perf events. More... | |
static size_t const | PerfEventBufferThresholdToTriggerVCDWrite = PerfEventBufferSize / 2 |
Threshold when to force writing out VCD buffer. More... | |
static size_t const | PerfVCDFileBuffer = 0x1000 |
VCD file buffer in bytes. More... | |
static bool const | DoPerfEvent = false |
Record and output perf events. More... | |
static bool const | EnablePerfEvent |
Enable (but not necessarily record) perf. More... | |
static bool const | PerfSyscall = true |
Also record syscalls by perf. More... | |
static bool const | NamedFsm = Debug || (EnableDebugPrint && Print_fsm > 0) |
Use named FSM guards/actions. More... | |
static bool const | UseZMQ |
Enable ZeroMQ support. More... | |
|
inlinestaticconstexpr |
Minimum time slice before zth::yield() actually yields.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
When true
, enable zth_assert().
|
static |
|
static |
Actually do print the debug output.
Needs SupportDebugPrint to be true
. Can be overridden by ZTH_CONFIG_ENABLE_DEBUG_PRINT
environment variable.
|
static |
Show failing expression in case of a failed assert.
Disable to reduce binary size.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Save names for all zth::Synchronizer instances.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Add support to enable debug output prints.
The output is only actually printed when EnableDebugPrint is true
.
|
static |
Print an overrun reported when MinTimeslice_s() is exceeded by this factor.
|
static |