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

Function TEST

test/concurrent/test_sched_interface.cpp:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18};
19
20TEST(futex_interface, create_destroy_work_fine_even_not_necessary) {
21 ASSERT_FALSE(SchedInterface::futex_need_create());
22 auto* futex = SchedInterface::create_futex();
23 ASSERT_NE(nullptr, futex);
24 *futex = 10086;
25 SchedInterface::destroy_futex(futex);
26}
27
28TEST(futex_interface, wait_return_if_not_equal) {
29 {

Callers

nothing calls this directly

Calls 10

asyncFunction · 0.85
wait_forMethod · 0.80
wake_oneMethod · 0.80
get_futureMethod · 0.80
loadMethod · 0.80
set_valueMethod · 0.80
wake_allMethod · 0.80
waitMethod · 0.45
getMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected