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

Method assert_in_executor

test/coroutine/test_futex.cpp:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 static void assert_in_executor(Executor& executor) {
23 if (!executor.is_running_in()) {
24 ::abort();
25 }
26 }
27
28 static void assert_not_in_executor(Executor& executor) {
29 if (executor.is_running_in()) {

Callers

nothing calls this directly

Calls 1

is_running_inMethod · 0.80

Tested by

no test coverage detected