lttng.ust: Do not block in UstDebugInfoAnalysisModule
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 14 Jul 2016 23:59:13 +0000 (19:59 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Fri, 2 Sep 2016 18:15:57 +0000 (14:15 -0400)
commit599e5482448fede7d30a73bd9a3471b97be7ba4f
tree360503e2a7c39dc6914ecac0270285818c8e2914
parent5c06cad28a3cb9be31cadc9369eeaa1d2d49bace
lttng.ust: Do not block in UstDebugInfoAnalysisModule

Query methods in the module should not call waitForCompletion()
on the analysis, but should return whatever data they have
(or null).

This is because this is called by the aspects, which are called
by the event table, which are called by the UI thread! The UI
should not block while the analysis is waiting construction.

If a specific caller wants to wait for the full data, they can
call waitForCompletion() manually, like the tests do.

Change-Id: I2cf4e3544a8eea71a65f1e16fe7d4b5ba881d5ca
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/77374
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
lttng/org.eclipse.tracecompass.lttng2.ust.core.tests/src/org/eclipse/tracecompass/lttng2/ust/core/tests/analysis/debuginfo/UstDebugInfoAnalysisModuleTest.java
lttng/org.eclipse.tracecompass.lttng2.ust.core/src/org/eclipse/tracecompass/lttng2/ust/core/analysis/debuginfo/UstDebugInfoAnalysisModule.java
This page took 0.024427 seconds and 5 git commands to generate.