mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 23:53:55 +00:00
cpu_session: Access thread state by value
This commit is contained in:
committed by
Norman Feske
parent
4dadd6a437
commit
05f5999e71
@ -87,14 +87,18 @@ namespace Genode {
|
||||
void cancel_blocking();
|
||||
|
||||
/**
|
||||
* Request thread state
|
||||
* Override thread state with 's'
|
||||
*
|
||||
* \param state_dst destination state buffer
|
||||
*
|
||||
* \retval 0 successful
|
||||
* \retval -1 thread state not accessible
|
||||
* \throw Cpu_session::State_access_failed
|
||||
*/
|
||||
int state(Genode::Thread_state *state_dst);
|
||||
void state(Thread_state s);
|
||||
|
||||
/**
|
||||
* Read thread state
|
||||
*
|
||||
* \throw Cpu_session::State_access_failed
|
||||
*/
|
||||
Thread_state state();
|
||||
|
||||
|
||||
/************************
|
||||
|
@ -78,10 +78,17 @@ void Platform_thread::resume()
|
||||
}
|
||||
|
||||
|
||||
int Platform_thread::state(Thread_state *state_dst)
|
||||
void Platform_thread::state(Thread_state s)
|
||||
{
|
||||
PDBG("not implemented");
|
||||
return -1;
|
||||
PDBG("Not implemented");
|
||||
throw Cpu_session::State_access_failed();
|
||||
}
|
||||
|
||||
|
||||
Thread_state Platform_thread::state()
|
||||
{
|
||||
PDBG("Not implemented");
|
||||
throw Cpu_session::State_access_failed();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user