base: remove Signal_receiver::pending() method

Fix #1864
This commit is contained in:
Stefan Kalkowski 2019-01-03 12:26:13 +01:00 committed by Norman Feske
parent e8ea28d897
commit 6b4d76739e
2 changed files with 0 additions and 19 deletions

View File

@ -399,11 +399,6 @@ class Genode::Signal_receiver : Noncopyable
*/
void dissolve(Signal_context *context);
/**
* Return true if signal was received
*/
bool pending();
/**
* Block until a signal is received and return the signal
*

View File

@ -242,20 +242,6 @@ void Signal_receiver::dissolve(Signal_context *context)
}
bool Signal_receiver::pending()
{
Lock::Guard contexts_lock_guard(_contexts_lock);
bool result = false;
_contexts.for_each_locked([&] (Signal_context &context) {
if (context._pending) {
result = true;
throw Context_ring::Break_for_each();
}
});
return result;
}
void Signal_receiver::Context_ring::insert_as_tail(Signal_context *re)
{
if (_head) {