1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix for 220166: Deadlock running core test suite

This commit is contained in:
Anton Leherbauer 2008-02-25 11:51:44 +00:00
parent aa7ed7ba19
commit fe2db58147

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2005, 2007 QNX Software Systems * Copyright (c) 2005, 2008 QNX Software Systems
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -66,7 +66,7 @@ public class PDOMIndexerJob extends Job {
do { do {
synchronized(taskMutex) { synchronized(taskMutex) {
currentTask= null; currentTask= null;
taskMutex.notify(); taskMutex.notifyAll();
// user cancel, tell manager and return // user cancel, tell manager and return
if (monitor.isCanceled()) { if (monitor.isCanceled()) {
@ -118,7 +118,7 @@ public class PDOMIndexerJob extends Job {
pdomManager.cancelledJob(true); pdomManager.cancelledJob(true);
synchronized (taskMutex) { synchronized (taskMutex) {
currentTask= null; currentTask= null;
taskMutex.notify(); taskMutex.notifyAll();
} }
throw e; throw e;
} }
@ -127,7 +127,7 @@ public class PDOMIndexerJob extends Job {
pdomManager.cancelledJob(true); pdomManager.cancelledJob(true);
synchronized (taskMutex) { synchronized (taskMutex) {
currentTask= null; currentTask= null;
taskMutex.notify(); taskMutex.notifyAll();
} }
throw e; throw e;
} }