Added CPU option "yield".

This commit is contained in:
XMRig 2019-12-03 09:04:20 +07:00
parent cf48a34065
commit c3fd5835c3
No known key found for this signature in database
GPG key ID: 446A53638BE94409
7 changed files with 14 additions and 0 deletions

View file

@ -55,6 +55,7 @@ public:
inline bool isEnabled() const { return m_enabled; }
inline bool isHugePages() const { return m_hugePages; }
inline bool isShouldSave() const { return m_shouldSave; }
inline bool isYield() const { return m_yield; }
inline const Assembly &assembly() const { return m_assembly; }
inline const String &argon2Impl() const { return m_argon2Impl; }
inline const Threads<CpuThreads> &threads() const { return m_threads; }
@ -72,6 +73,7 @@ private:
bool m_enabled = true;
bool m_hugePages = true;
bool m_shouldSave = false;
bool m_yield = false;
int m_memoryPool = 0;
int m_priority = -1;
String m_argon2Impl;