Added --cpu-priority option.
This commit is contained in:
parent
61859dfe14
commit
f05a328474
15 changed files with 136 additions and 6 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include "Cpu.h"
|
||||
#include "Mem.h"
|
||||
#include "Platform.h"
|
||||
#include "workers/Handle.h"
|
||||
#include "workers/Worker.h"
|
||||
|
||||
|
@ -42,6 +43,7 @@ Worker::Worker(Handle *handle) :
|
|||
Cpu::setAffinity(m_id, handle->affinity());
|
||||
}
|
||||
|
||||
Platform::setThreadPriority(handle->priority());
|
||||
m_ctx = Mem::create(m_id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue