Option "yield" enabled by default and added command line option --cpu-no-yield.

This commit is contained in:
XMRig 2019-12-04 08:50:54 +07:00
parent a556070b42
commit 901f1a7ab1
No known key found for this signature in database
GPG key ID: 446A53638BE94409
9 changed files with 15 additions and 4 deletions

View file

@ -147,7 +147,9 @@ void xmrig::ConfigTransform::transform(rapidjson::Document &doc, int key, const
case IConfig::MemoryPoolKey: /* --cpu-memory-pool */
return set(doc, kCpu, "memory-pool", static_cast<int64_t>(strtol(arg, nullptr, 10)));
break;
case IConfig::YieldKey: /* --cpu-no-yield */
return set(doc, kCpu, "yield", false);
# ifdef XMRIG_FEATURE_ASM
case IConfig::AssemblyKey: /* --asm */