diff options
author | Dan Vrátil <dvratil@redhat.com> | 2015-04-01 13:24:41 +0200 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2015-04-01 13:24:54 +0200 |
commit | 94729eef71570e0b792a9afb95eeab7fd1eec56b (patch) | |
tree | 1c09d92fc29764f1bf7322d13487caabb19002be /tests/domainadaptortest.cpp | |
parent | fb4c36e3daded17746a0bcd7c245b8cea9782c1a (diff) | |
download | sink-94729eef71570e0b792a9afb95eeab7fd1eec56b.tar.gz sink-94729eef71570e0b792a9afb95eeab7fd1eec56b.zip |
Async: have the top executor reference itself during execution
The only reference to the top executor (the last in chain) is held by the
Job. If the Job goes out of scope after it's executed, the top Executor
is deleted (which in turn deletes the entire Executor chain). By having
the top Executor holding reference to itself during execution we ensure
that the Executor chain is not deleted until the job is finished, even
when the parent Job object is deleted in the meanwhile.
Diffstat (limited to 'tests/domainadaptortest.cpp')
0 files changed, 0 insertions, 0 deletions