okl4: check result of bind_thread

Related to #1418
Issue #111
This commit is contained in:
Alexander Boettcher 2015-03-13 11:21:28 +01:00 committed by Christian Helmuth
parent 096d72de90
commit 30094ecd48
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@ void Thread_base::start()
_tid.pt = new(platform_specific()->thread_slab())
Platform_thread(0, _context->name);
platform_specific()->core_pd()->bind_thread(_tid.pt);
if (platform_specific()->core_pd()->bind_thread(_tid.pt))
throw Cpu_session::Thread_creation_failed();
_tid.pt->start((void *)_thread_start, stack_top());
}