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

@ -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();
/************************

View File

@ -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();
}