27 using std::atomic_bool;
28 using std::this_thread::sleep_for;
48 demonstrateSimpleUsage();
49 verifyMemoryManagement();
57 atomic_bool didRun{
false};
74 using ThreadHookable::ThreadHookable;
81 watcher.setVal (extra);
86 CHECK (0 == Dummy::checksum());
88 launchDetached<TestThread> (&TestThread::doIt, 55);
90 CHECK (0 < Dummy::checksum());
92 CHECK (55 == Dummy::checksum());
94 CHECK (0 == Dummy::checksum());
void verifyMemoryManagement()
Implementation namespace for support and library code.
Abstract Base Class for all testcases.
Simplistic test class runner.
void demonstrateSimpleUsage()
unittest helper code: test dummy objects to track instances.
void launchDetached(ThreadHookable::Launch &&launchBuilder)
Launch an autonomous self-managing thread (and forget about it).
Convenience front-end to simplify and codify basic thread handling.
A Dummy object for tests.
Extended variant of the standard case, allowing to install callbacks (hook functions) to be invoked d...