Refactor Ryzen fix to fix compilation issues
This commit is contained in:
parent
29dd2c2138
commit
c9f90e6770
5 changed files with 31 additions and 13 deletions
|
@ -58,18 +58,13 @@ public:
|
|||
static void init(IRxListener *listener);
|
||||
|
||||
# ifdef XMRIG_FIX_RYZEN
|
||||
static inline const std::pair<const void*, const void*> &mainLoopBounds() { return m_mainLoopBounds; }
|
||||
static inline void setMainLoopBounds(const void* loopBegin, const void* loopEnd) { m_mainLoopBounds.first = loopBegin; m_mainLoopBounds.second = loopEnd; }
|
||||
static void setMainLoopBounds(const std::pair<const void*, const void*>& bounds);
|
||||
# endif
|
||||
|
||||
private:
|
||||
static void msrInit(const RxConfig &config);
|
||||
static void msrDestroy();
|
||||
static void setupMainLoopExceptionFrame();
|
||||
|
||||
# ifdef XMRIG_FIX_RYZEN
|
||||
static thread_local std::pair<const void*, const void*> m_mainLoopBounds;
|
||||
# endif
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue