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

Class dummy_executor

test/source/tests/runtime_tests.cpp:13–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12namespace concurrencpp::tests {
13 struct dummy_executor : public concurrencpp::executor {
14 bool shutdown_requested_flag = false;
15
16 dummy_executor(const char* name, int, float) : executor(name) {}
17
18 void enqueue(concurrencpp::task) override {}
19 void enqueue(std::span<concurrencpp::task>) override {}
20
21 int max_concurrency_level() const noexcept override {
22 return 0;
23 }
24
25 bool shutdown_requested() const noexcept override {
26 return shutdown_requested_flag;
27 }
28
29 void shutdown() noexcept override {
30 shutdown_requested_flag = true;
31 }
32 };
33} // namespace concurrencpp::tests
34
35void concurrencpp::tests::test_runtime_constructor() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected