mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 16:28:56 +00:00
Merge pull request #696 from ArneDeutsch/xtext-eclipse-599
[eclipse/xtext-eclipse#599] Support waiting operation.
This commit is contained in:
commit
ef9817b9a8
2 changed files with 12 additions and 0 deletions
|
@ -40,6 +40,12 @@ class FileSystemAccessQueue extends AdapterImpl {
|
|||
throw new OperationCanceledException
|
||||
}
|
||||
}
|
||||
|
||||
def void waitForEmptyQueue() {
|
||||
while (!requestQueue.isEmpty) {
|
||||
Thread.yield
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -53,4 +53,10 @@ public class FileSystemAccessQueue extends AdapterImpl {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void waitForEmptyQueue() {
|
||||
while ((!this.requestQueue.isEmpty())) {
|
||||
Thread.yield();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue