removed synchronization of size() method from numerous classes to avoid thread locking

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3490 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 18 years ago
parent 6b9eea3932
commit 5bbf010107

@ -67,7 +67,7 @@ public class indexCollectionRI implements indexRI {
return entries.updated();
}
public synchronized int size() {
public int size() {
try {
return collectionIndex.size();
} catch (IOException e) {

@ -265,7 +265,7 @@ public final class indexRAMRI implements indexRI {
return this.cacheMaxCount;
}
public synchronized int size() {
public int size() {
return cache.size();
}

@ -272,7 +272,7 @@ public class kelondroCollectionIndex {
}
}
public synchronized int size() throws IOException {
public int size() throws IOException {
return index.size();
}

@ -122,7 +122,7 @@ public class kelondroFlexSplitTable implements kelondroIndex {
return new String(suffix);
}
public synchronized int size() throws IOException {
public int size() throws IOException {
Iterator i = tables.values().iterator();
int s = 0;
while (i.hasNext()) {

Loading…
Cancel
Save