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

Method assert_not_in_executor

test/coroutine/test_futex.cpp:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 static void assert_not_in_executor(Executor& executor) {
29 if (executor.is_running_in()) {
30 ::abort();
31 }
32 }
33
34 ::babylon::AlwaysUseNewThreadExecutor& executor {
35 ::babylon::AlwaysUseNewThreadExecutor::instance()};

Callers

nothing calls this directly

Calls 1

is_running_inMethod · 0.80

Tested by

no test coverage detected