Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ wait
Method
wait
src/sync.h:287–292 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
285
explicit CSemaphore(int init) : value(init) {}
286
287
void wait()
288
{
289
std::unique_lock<std::mutex> lock(mutex);
290
condition.wait(lock, [&]() { return value >= 1; });
291
value--;
292
}
293
294
bool try_wait()
295
{
Callers
15
tree_sha512sum
Function · 0.80
shutdown
Method · 0.80
get_node_output
Method · 0.80
_test_stopatheight
Method · 0.80
kill_and_join
Method · 0.80
wait_for_node_exit
Method · 0.80
_stop_perf
Method · 0.80
get_node_output
Method · 0.80
sigterm_node
Method · 0.80
_test_stopatheight
Method · 0.80
wait_for_node_exit
Method · 0.80
_stop_perf
Method · 0.80
Calls
no outgoing calls
Tested by
10
kill_and_join
Method · 0.64
wait_for_node_exit
Method · 0.64
_stop_perf
Method · 0.64
wait_for_node_exit
Method · 0.64
_stop_perf
Method · 0.64
assert_start_raises_init_error
Method · 0.64
BOOST_FIXTURE_TEST_CASE
Function · 0.64
~FrozenCleanupCheck
Method · 0.64
BOOST_AUTO_TEST_CASE
Function · 0.64
TestRpcCommand
Function · 0.64