MCPcopy Create free account
hub / github.com/crownengine/crown / test_thread

Function test_thread

src/core/unit_tests.cpp:1850–1858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1848}
1849
1850static void test_thread()
1851{
1852 Thread thread;
1853 ENSURE(!thread.is_running());
1854
1855 thread.start([](void *) { return 0xbadc0d3; }, NULL);
1856 thread.stop();
1857 ENSURE(thread.exit_code() == 0xbadc0d3);
1858}
1859
1860static void test_process()
1861{

Callers

nothing calls this directly

Calls 4

is_runningMethod · 0.80
exit_codeMethod · 0.80
startMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected