cpu_session: Access thread state by value

This commit is contained in:
Martin Stein
2012-11-12 17:48:18 +01:00
committed by Norman Feske
parent 4dadd6a437
commit 05f5999e71
47 changed files with 353 additions and 199 deletions

View File

@ -48,8 +48,11 @@ namespace Genode {
void cancel_blocking(Thread_capability thread) {
call<Rpc_cancel_blocking>(thread); }
int state(Thread_capability thread, Thread_state *dst_state) {
return call<Rpc_state>(thread, dst_state); }
Thread_state state(Thread_capability thread) {
return call<Rpc_get_state>(thread); }
void state(Thread_capability thread, Thread_state const &state) {
call<Rpc_set_state>(thread, state); }
void exception_handler(Thread_capability thread, Signal_context_capability handler) {
call<Rpc_exception_handler>(thread, handler); }