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:
parent
0e35a4b8d3
commit
535df46f7d
@ -30,7 +30,7 @@
|
|||||||
static bool g_isThrottled = false;
|
static bool g_isThrottled = false;
|
||||||
static uint64_t g_originalAffinity = 0;
|
static uint64_t g_originalAffinity = 0;
|
||||||
|
|
||||||
extern "C" {
|
namespace xmrig {
|
||||||
void setThrottlingState(bool throttled, uint64_t originalAffinity) {
|
void setThrottlingState(bool throttled, uint64_t originalAffinity) {
|
||||||
g_isThrottled = throttled;
|
g_isThrottled = throttled;
|
||||||
g_originalAffinity = originalAffinity;
|
g_originalAffinity = originalAffinity;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user