More sync in close() methods

Conflicts:
	source/net/yacy/kelondro/logging/GuiHandler.java
	source/net/yacy/kelondro/workflow/InstantBusyThread.java
pull/1/head
Roland 'Quix0r' Haeder 13 years ago committed by Michael Peter Christen
parent b3ae2aa41f
commit d10627d591

@ -208,8 +208,8 @@ public class GuiHandler extends Handler {
}
public void close() throws SecurityException {
public synchronized void close() throws SecurityException {
// Nothing implement here
}
}

@ -182,4 +182,14 @@ public final class InstantBusyThread extends AbstractBusyThread implements BusyT
return oneTimeJob( thread, startupDelay);
}
@Override
public void open() {
// Not implemented in this thread
}
@Override
public synchronized void close() {
// Not implemented in this thread
}
}

@ -50,7 +50,7 @@ public class DocumentMetadata implements Metadata {
}
@Override
public void close() {
public synchronized void close() {
// TODO Auto-generated method stub
}

@ -42,7 +42,7 @@ public class DocumentReference {
return data.size();
}
public void close() {
public synchronized void close() {
if (data != null) {
data.close();
}

Loading…
Cancel
Save