Synchronized access to remove items from createIgnoreListQueue for sure.
1.1 --- a/vcscore/src/org/netbeans/modules/vcscore/VcsFileSystem.java Thu Jun 06 13:31:25 2002 +0000
1.2 +++ b/vcscore/src/org/netbeans/modules/vcscore/VcsFileSystem.java Mon Jun 10 14:50:39 2002 +0000
1.3 @@ -1302,8 +1302,13 @@
1.4 //System.out.println("createIgnoreListCreationThread STARTING...");
1.5 do {
1.6 //System.out.println("createIgnoreListCreationThread RESUMED...");
1.7 - while (createIgnoreListQueue.size() > 0) {
1.8 - FileObject fo = (FileObject) createIgnoreListQueue.remove(0);
1.9 + while (true) {
1.10 + FileObject fo;
1.11 + synchronized (createIgnoreListQueue) {
1.12 + int n = createIgnoreListQueue.size();
1.13 + if (n == 0) break;
1.14 + fo = (FileObject) createIgnoreListQueue.remove(0);
1.15 + }
1.16 FileSystem fs = null;
1.17 try {
1.18 fs = fo.getFileSystem();