1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-08 16:33:32 -05:00

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
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 */