tmf: Split ITmfStateSystem.waitUntilBuilt() in separate methods
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 15 Jan 2014 18:27:49 +0000 (13:27 -0500)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 16 Jan 2014 03:20:43 +0000 (22:20 -0500)
commit2002c638b41ba508da46e0fc7083106c279627d0
tree7c938aeeeb9f22bd5146522ce6a94e405b58b39b
parent42f1f820dc2c0e32e64ca3bf2a32ba2e39cb0625
tmf: Split ITmfStateSystem.waitUntilBuilt() in separate methods

Decouple the return value of waitUntilBuilt() in a new isCancelled()
method, so that it can be checked independently.

This is because we are planning to add a new waitUntilBuilt(long) method
with a timeout, and that one will have to return a boolean to indicate
if it returned due to the thing being built, or due to the timeout.

We will still want to check for the cancellation state afterwards.
Furthermore, it would be very confusing if both methods (with and without
the timeout) returned a boolean that meant different things.

Change-Id: If7a954d2368d55c99e30e31e17e39b39bca5f432
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/20677
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Hudson CI
org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/controlflow/ControlFlowView.java
org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/resources/ResourcesView.java
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
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/statistics/TmfStateStatistics.java
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/callstack/CallStackView.java
This page took 0.02683 seconds and 5 git commands to generate.