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

Method assert_in_executor

test/coroutine/test_task.cpp:80–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 static void assert_in_executor(Executor& executor) {
81 if (!executor.is_running_in()) {
82 ::abort();
83 }
84 }
85
86 static void assert_not_in_executor(Executor& executor) {
87 if (executor.is_running_in()) {

Callers

nothing calls this directly

Calls 1

is_running_inMethod · 0.80

Tested by

no test coverage detected