v30.3-roots.1 · Commit 2: [PATCH 02/68] feat(runtime): preserve Roots operator controls on Core 30.3
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. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
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
|