MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / AppInitLockDataDirectory

Function AppInitLockDataDirectory

src/init.cpp:1214–1224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1212}
1213
1214bool AppInitLockDataDirectory()
1215{
1216 // After daemonization get the data directory lock again and hold on to it until exit
1217 // This creates a slight window for a race condition to happen, however this condition is harmless: it
1218 // will at most make us exit without printing a message to console.
1219 if (!LockDataDirectory(false)) {
1220 // Detailed error printed inside LockDataDirectory
1221 return false;
1222 }
1223 return true;
1224}
1225
1226bool AppInitMain()
1227{

Callers 2

AppInitFunction · 0.85
baseInitializeMethod · 0.85

Calls 1

LockDataDirectoryFunction · 0.85

Tested by

no test coverage detected