MCPcopy Create free account
hub / github.com/ElementsProject/elements / ThreadBody

Function ThreadBody

src/leveldb/util/env_test.cc:147–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145};
146
147static void ThreadBody(void* arg) {
148 State* s = reinterpret_cast<State*>(arg);
149 s->mu.Lock();
150 s->val += 1;
151 s->num_running -= 1;
152 s->cvar.Signal();
153 s->mu.Unlock();
154}
155
156TEST(EnvTest, StartThread) {
157 State state(0, 3);

Callers

nothing calls this directly

Calls 3

LockMethod · 0.80
SignalMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected