* Due to wrong synchronization Processes chart is not
created second time.
* Bug related to the FindBugs MT_CORRECTNESS warning.
* Bug introduced in SRADA-703, commit ea27fce.
Change-Id: I87ba2ea3785e601b2e72782ffb00a4b54a5fe774
private DAChartBoardItem item = null;
private DAChartBoardHeightChangeableItem processItem = null;
private Map<Integer, DAChartSeries> childSeriesMap;
-
- private Boolean isProcessChart = false;
public CPUChart(String pageID) {
super(pageID);
Display.getDefault().syncExec(new Runnable() {
@Override
public void run() {
- synchronized (isProcessChart) {
- if(isProcessChart == false) {
- isProcessChart = true;
- }
- else {
- return;
- }
- }
+ if (processItem != null)
+ return;
+
processItem = new DAChartBoardHeightChangeableItem(item, "Processes");
processItem.useExpand(false);