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:
parent
ac3e1dfd90
commit
d718f56ee2
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue