cpu_sampler: fix 'Native_cpu_component' for Fiasco.OC

Fixes #2244
This commit is contained in:
Christian Prochaska 2017-01-19 14:23:41 +01:00 committed by Christian Helmuth
parent dfe351a02c
commit 9006b7ea6a

View File

@ -75,7 +75,11 @@ class Cpu_sampler::Native_cpu_component : public Rpc_object<Foc_native_cpu,
Foc_thread_state thread_state(Thread_capability cap) override
{
return _foc_native_cpu.thread_state(cap);
auto lambda = [&] (Cpu_sampler::Cpu_thread_component *cpu_thread) {
return _foc_native_cpu.thread_state(cpu_thread->parent_thread());
};
return _cpu_session_component.thread_ep().apply(cap, lambda);
}
};