mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-07 11:50:24 +00:00
Synchronize thread destruction in signal test
This commit is contained in:
parent
3d6f4979c3
commit
1c1cbb9b95
@ -131,6 +131,17 @@ class Handler : Thread
|
|||||||
Thread::start();
|
Thread::start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~Handler()
|
||||||
|
{
|
||||||
|
Signal_context context;
|
||||||
|
Signal_context_capability context_cap { _receiver.manage(&context) };
|
||||||
|
|
||||||
|
_stop = true;
|
||||||
|
Signal_transmitter(context_cap).submit();
|
||||||
|
Thread::join();
|
||||||
|
_receiver.dissolve(&context);
|
||||||
|
}
|
||||||
|
|
||||||
void print(Output &output) const { Genode::print(output, "handler ", _id); }
|
void print(Output &output) const { Genode::print(output, "handler ", _id); }
|
||||||
|
|
||||||
/***************
|
/***************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user