MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / test_runtime_destructor

Method test_runtime_destructor

test/source/tests/runtime_tests.cpp:97–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void concurrencpp::tests::test_runtime_destructor() {
98 std::shared_ptr<concurrencpp::executor> executors[7];
99
100 {
101 concurrencpp::runtime runtime;
102 executors[0] = runtime.inline_executor();
103 executors[1] = runtime.thread_pool_executor();
104 executors[2] = runtime.background_executor();
105 executors[3] = runtime.thread_executor();
106 executors[4] = runtime.make_worker_thread_executor();
107 executors[5] = runtime.make_manual_executor();
108 executors[6] = runtime.make_executor<dummy_executor>("dummy_executor", 1, 4.4f);
109 }
110
111 for (auto& executor : executors) {
112 assert_true(executor->shutdown_requested());
113 }
114}
115
116void concurrencpp::tests::test_runtime_version() {
117 auto version = concurrencpp::runtime::version();

Callers

nothing calls this directly

Calls 8

assert_trueFunction · 0.85
inline_executorMethod · 0.80
background_executorMethod · 0.80
make_manual_executorMethod · 0.80
thread_pool_executorMethod · 0.45
thread_executorMethod · 0.45
shutdown_requestedMethod · 0.45

Tested by

no test coverage detected