Skip to content
Bitcoin Roots

v29.4-roots.4 · Commit 2: [PATCH 02/37] runtime: preserve shared operator controls

src/util/mempressure.h

Before: /dev/null · After: src/util/mempressure.h

File metadata
new file mode 100644
index 0000000000000000000000000000000000000000..a3b0e44c0c32c3a06a5eedf318b96e737acbc09b

Download original patch · Release notes

Diff rows 1–14 of 14. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.

src/util/mempressure.h ADDED
@@ -0,0 +1,14 @@
1
+ // Copyright (c) 2023-present The Bitcoin Roots developers
2
+ // Distributed under the MIT software license, see the accompanying
3
+ // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+
5
+ #ifndef BITCOIN_UTIL_MEMPRESSURE_H
6
+ #define BITCOIN_UTIL_MEMPRESSURE_H
7
+
8
+ #include <cstddef>
9
+
10
+ extern size_t g_low_memory_threshold;
11
+
12
+ bool SystemNeedsMemoryReleased();
13
+
14
+ #endif // BITCOIN_UTIL_MEMPRESSURE_H