genode/repos/os/include/packet_stream_rx
Martin Stein 60d37f690c packet_stream_*: fix missing dissolve on exception
When the construction of a member of Packet_stream_*::Rpc_object after
the _cap member threw an exception, the object was not dissolved from
the entrypoint although the Rpc_object vanished at this point. This was
because the call to 'manage()' happened in the initializer list (for the
_cap member instantiation). The destruction of the _cap member then did
not dissolve the object.

This first fix moves the call to 'manage()' into the constructor body
after the instantiation of all other members. A more sophisticated fix
would use some kind of 'Managed_object' life-time guard that manages an
object on construction and dissolves on destruction.

Ref #3525
2019-11-19 14:42:22 +01:00
..
client.h Add missing override annotations 2019-02-19 11:12:11 +01:00
packet_stream_rx.h Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
rpc_object.h packet_stream_*: fix missing dissolve on exception 2019-11-19 14:42:22 +01:00