mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-25 05:25:32 +00:00
core: always release Irq_proxy startup lock
Prior this patch the startup lock was not released if the call of '_associate()' failed. In this condition, the caller of the constructor was infinitely blocked.
This commit is contained in:
parent
7868156b19
commit
622959ede4
@ -154,10 +154,12 @@ class Genode::Irq_proxy : public THREAD,
|
||||
*/
|
||||
void entry()
|
||||
{
|
||||
if (_associate()) {
|
||||
_startup_lock.unlock();
|
||||
bool const associate_suceeded = _associate();
|
||||
|
||||
_startup_lock.unlock();
|
||||
|
||||
if (associate_suceeded)
|
||||
_loop();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user