tmf: Allow waiting for a state system's completion
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 30 Oct 2012 14:38:49 +0000 (10:38 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 30 Oct 2012 21:05:41 +0000 (17:05 -0400)
commit16576a7e413898b7f3a60ce3512ea30afac388ef
tree2dd689a8ca493383c90f39dae53b51af1860d251
parentdf310609b0bb3d4cb611c71e888056ebcb90fd07
tmf: Allow waiting for a state system's completion

ITmfStateSystem.waitUntilBuilt() will now block the calling
thread until the state system underneath is finished building.
This will be immediately useful for statistics (intermediate
queries are useless, we need to wait until it's ready anyway).

It's implemented using a CountDownLatch, similar to the
.waitForCompletion() in event requests.

Change-Id: I98420acc3ca2903d76a315259f25dca7d88b8d42
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/8427
Tested-by: Hudson CI
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/StateSystem.java
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statesystem/ITmfStateSystem.java
This page took 0.025897 seconds and 5 git commands to generate.