mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-08 16:33:32 -05:00
Added --cpu-priority option.
This commit is contained in:
@@ -98,7 +98,7 @@ void Workers::setJob(const Job &job)
|
||||
}
|
||||
|
||||
|
||||
void Workers::start(int64_t affinity)
|
||||
void Workers::start(int64_t affinity, int priority)
|
||||
{
|
||||
const int threads = Mem::threads();
|
||||
m_hashrate = new Hashrate(threads);
|
||||
@@ -114,7 +114,7 @@ void Workers::start(int64_t affinity)
|
||||
uv_timer_start(&m_timer, Workers::onTick, 500, 500);
|
||||
|
||||
for (int i = 0; i < threads; ++i) {
|
||||
Handle *handle = new Handle(i, threads, affinity);
|
||||
Handle *handle = new Handle(i, threads, affinity, priority);
|
||||
m_workers.push_back(handle);
|
||||
handle->start(Workers::onReady);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user