MCPcopy Create free account
hub / github.com/baidu/babylon / assert_not_in_executor

Method assert_not_in_executor

test/coroutine/test_task.cpp:86–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 static void assert_not_in_executor(Executor& executor) {
87 if (executor.is_running_in()) {
88 ::abort();
89 }
90 }
91
92 ::babylon::ThreadPoolExecutor executor;
93

Callers

nothing calls this directly

Calls 1

is_running_inMethod · 0.80

Tested by

no test coverage detected