36 using std::atomic_bool;
37 using std::this_thread::sleep_for;
57 demonstrateSimpleUsage();
58 verifyMemoryManagement();
66 atomic_bool didRun{
false};
83 using ThreadHookable::ThreadHookable;
90 watcher.setVal (extra);
95 CHECK (0 == Dummy::checksum());
97 launchDetached<TestThread> (&TestThread::doIt, 55);
99 CHECK (0 < Dummy::checksum());
101 CHECK (55 == Dummy::checksum());
103 CHECK (0 == Dummy::checksum());
void verifyMemoryManagement()
Implementation namespace for support and library code.
unittest helper code: test dummy objects to track instances.
Abstract Base Class for all testcases.
Simple test class runner.
void demonstrateSimpleUsage()
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...