mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-13 04:38:20 +00:00
cpu_session: Access thread state by value
This commit is contained in:
committed by
Norman Feske
parent
4dadd6a437
commit
05f5999e71
@ -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); }
|
||||
|
Reference in New Issue
Block a user