diff options
author | Alexandre Montplaisir | 2012-11-05 16:54:12 +0000 |
---|---|---|
committer | Alexandre Montplaisir | 2012-11-05 22:22:31 +0000 |
commit | a0a7a2085882ab565963b03dccf914872616e3d3 (patch) | |
tree | afdc2a0539814736650e9ab448eea4858b79c1b4 /lttng/org.eclipse.linuxtools.ctf.core | |
parent | 6aacfbad456155c56bed71bbdee74bfa1f796a24 (diff) | |
download | org.eclipse.linuxtools-a0a7a2085882ab565963b03dccf914872616e3d3.tar.gz org.eclipse.linuxtools-a0a7a2085882ab565963b03dccf914872616e3d3.tar.xz org.eclipse.linuxtools-a0a7a2085882ab565963b03dccf914872616e3d3.zip |
tmf: Handle race between state system queries and diposal
It's possible that a state system gets disposed while a query
is ongoing (happens between two successive .getNextChild()
calls, for example).
Instead of implementing a convoluted reader-writer-lock, we can
just catch the ClosedChannelException and rethrow a
StateSystemDisposed exception.
Change-Id: I93f72860bbb94a63e86e7c6f51682af659599fe3
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/8520
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
Diffstat (limited to 'lttng/org.eclipse.linuxtools.ctf.core')
0 files changed, 0 insertions, 0 deletions