1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 15:15:25 +02:00

Fix Mutex -- interruptAll() must be synchonized because accessing fWaitQueue

This commit is contained in:
Martin Oberhuber 2006-08-10 16:55:53 +00:00
parent ac3e1dfd90
commit d718f56ee2

View file

@ -137,7 +137,7 @@ public class Mutex {
* This should be called if the resource that the Threads are
* contending for, becomes unavailable for some other reason.
*/
public void interruptAll() {
public synchronized void interruptAll() {
Iterator it = fWaitQueue.iterator();
while (it.hasNext()) {
Thread aThread = (Thread)it.next();