Fix Worker.cpp namespace and function declaration

- Add proper xmrig namespace for setThrottlingState function
- Fix global variable declarations
- This should resolve linking errors from previous build
This commit is contained in:
JorySeverijnse 2025-12-13 19:22:08 +01:00
parent 0e35a4b8d3
commit 535df46f7d

View File

@ -30,7 +30,7 @@
static bool g_isThrottled = false;
static uint64_t g_originalAffinity = 0;
extern "C" {
namespace xmrig {
void setThrottlingState(bool throttled, uint64_t originalAffinity) {
g_isThrottled = throttled;
g_originalAffinity = originalAffinity;