Added "msr" field for CPU backend.

This commit is contained in:
XMRig 2020-10-25 16:36:37 +07:00
parent 03cd56ed73
commit 4914fefb1f
No known key found for this signature in database
GPG key ID: 446A53638BE94409
5 changed files with 38 additions and 16 deletions

View file

@ -63,8 +63,14 @@ public:
static void setMainLoopBounds(const std::pair<const void*, const void*>& bounds);
# endif
# ifdef XMRIG_FEATURE_MSR
static bool isMSR();
# else
static constexpr bool isMSR() { return false; }
# endif
private:
static void msrInit(const RxConfig &config, const std::vector<CpuThread>& threads);
static bool msrInit(const RxConfig &config, const std::vector<CpuThread>& threads);
static void msrDestroy();
static void setupMainLoopExceptionFrame();
};