mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
parent
e8ea28d897
commit
6b4d76739e
@ -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
|
||||
*
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user