pthread: prevent copy of Genode::Thread object

This patch also adjusts virtualbox because it relies on pthread-internal
interfaces.

Fixes #2630
This commit is contained in:
Norman Feske
2018-01-04 14:47:16 +01:00
committed by Christian Helmuth
parent 8af45fd5fb
commit 2a33d9aa76
12 changed files with 200 additions and 98 deletions

View File

@@ -84,22 +84,6 @@ class Vmm::Vcpu_dispatcher : public T
}
template <typename X>
Vcpu_dispatcher(Genode::Env &env, Genode::size_t stack_size,
Cpu_session * cpu_session,
Genode::Affinity::Location location,
X attr, void *(*start_routine) (void *), void *arg,
const char * name = "vCPU dispatcher")
: T(attr, start_routine, arg, stack_size, name, nullptr, location),
_env(env)
{
using namespace Genode;
/* request creation of a 'local' EC */
T::native_thread().ec_sel = Native_thread::INVALID_INDEX - 1;
T::start();
}
/**
* Register virtualization event handler
*/