Propagate status code of Thread state and start
This commit is contained in:
parent
ddd4b9633d
commit
7aa75477e2
|
@ -111,8 +111,7 @@ int Cpu_session_component::start(Thread_capability thread_cap,
|
|||
Cpu_thread_component *thread = _lookup_thread(thread_cap);
|
||||
if (!thread) return -1;
|
||||
|
||||
thread->platform_thread()->start((void *)ip, (void *)sp);
|
||||
return 0;
|
||||
return thread->platform_thread()->start((void *)ip, (void *)sp);
|
||||
}
|
||||
|
||||
|
||||
|
@ -149,8 +148,7 @@ int Cpu_session_component::state(Thread_capability thread_cap,
|
|||
Cpu_thread_component *thread = _lookup_thread(thread_cap);
|
||||
if (!thread) return -1;
|
||||
|
||||
thread->platform_thread()->state(state_dst);
|
||||
return 0;
|
||||
return thread->platform_thread()->state(state_dst);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue