Skip to content

Commit

Permalink
TmfAnalysisElement: Execute analysis in separate thread
Browse files Browse the repository at this point in the history
This was done in UI thread and if module.schedule blocks due to
waitForCompletion (e.g. of dependent analysis) the UI thread blocks
until it's finished.

Change-Id: I5609f7cc06baf4e4c62c43b4fff3363415e3c1cc
Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
  • Loading branch information
bhufmann committed Aug 16, 2024
1 parent 5704617 commit 5f54e4f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,10 @@ public IStatus scheduleAnalysis() {
if (module == null) {
return new Status(IStatus.INFO, Activator.PLUGIN_ID, String.format("null analysis for %s", getAnalysisHelper().getName())); //$NON-NLS-1$
}
return module.schedule();
new Thread(() -> {
module.schedule();
}).run();
return Status.OK_STATUS;
}

/**
Expand Down

0 comments on commit 5f54e4f

Please sign in to comment.