Make the nested AsyncEvent work more reliably
commit724fc62e9288f26428274977614948fee0bc2000
authorTor Lillqvist <tml@collabora.com>
Wed, 28 Apr 2021 14:27:50 +0000 (28 17:27 +0300)
committerTor Lillqvist <tml@collabora.com>
Thu, 29 Apr 2021 06:46:44 +0000 (29 08:46 +0200)
tree3471842bb484c859eccba1773ff790fbb06ad869
parent2cc42f656b24b6e506fecb61f0fc58f5f8a98e6a
Make the nested AsyncEvent work more reliably

We must take into consideration that somebody might hold on to a hard
reference to such an object. Thus it is not enough to drop the
references to it from its parent, that is not necessarily enough to
make it destruct. Instead have the parent explicitly cann a function
on the children than generates their end events.

Also add some documentation.

Change-Id: I38180c85072c76af8964c48fa19132b8e1178ee1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114813
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
comphelper/qa/unit/test_traceevent.cxx
include/comphelper/traceevent.hxx