Skip to content
Snippets Groups Projects
Commit 317483ac authored by Avi Kivity's avatar Avi Kivity
Browse files

percpu-worker: name the threads

parent 19acbf3e
No related branches found
No related tags found
No related merge requests found
......@@ -119,9 +119,10 @@ void workman::pcpu_init()
{
(*_duty).store(false, std::memory_order_relaxed);
auto c = sched::cpu::current();
// Create PCPU Sheriff
*_work_sheriff = new sched::thread([] { workman::call_of_duty(); },
sched::thread::attr().pin(sched::cpu::current()));
sched::thread::attr().pin(c).name(osv::sprintf("percpu%d", c->id)));
(*_work_sheriff)->start();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment