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

Method try_wait

src/sync.h:294–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292 }
293
294 bool try_wait()
295 {
296 std::lock_guard<std::mutex> lock(mutex);
297 if (value < 1)
298 return false;
299 value--;
300 return true;
301 }
302
303 void post()
304 {

Callers 1

TryAcquireMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected