mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-08 02:53:12 +02:00
new method isEmpty()
This commit is contained in:
parent
ebc59cc62c
commit
8e88d4cc83
1 changed files with 8 additions and 0 deletions
|
@ -61,6 +61,14 @@ public class Queue {
|
|||
return array;
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
boolean empty;
|
||||
synchronized (list) {
|
||||
empty = list.isEmpty();
|
||||
}
|
||||
return empty;
|
||||
}
|
||||
|
||||
// private static void print(String msg) {
|
||||
// String name = Thread.currentThread().getName();
|
||||
// System.out.println(name + ": " + msg);
|
||||
|
|
Loading…
Add table
Reference in a new issue