Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ TryAcquire
Method
TryAcquire
src/sync.h:337–342 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
335
}
336
337
bool TryAcquire()
338
{
339
if (!fHaveGrant && sem->try_wait())
340
fHaveGrant = true;
341
return fHaveGrant;
342
}
343
344
void MoveTo(CSemaphoreGrant& grant)
345
{
Callers
1
ThreadOpenAddedConnections
Method · 0.80
Calls
1
try_wait
Method · 0.80
Tested by
no test coverage detected