MCPcopy Create free account
hub / github.com/ceph/ceph / TEST

Function TEST

src/test/simple_spin.cc:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12static int64_t counter = 0;
13
14TEST(SimpleSpin, Test0)
15{
16 std::atomic_flag lock0 = ATOMIC_FLAG_INIT;
17 spin_lock(&lock0);
18 spin_unlock(&lock0);
19}
20
21static void* mythread(void *v)
22{

Callers

nothing calls this directly

Calls 5

spin_lockFunction · 0.85
spin_unlockFunction · 0.85
pthread_createFunction · 0.85
check_lock_unlockFunction · 0.85
waitMethod · 0.45

Tested by

no test coverage detected