The 'lifecycleLock' is now acquired within the isRunning() method.

This commit is contained in:
Mark Fisher
2008-09-24 18:47:57 +00:00
parent d2bddbbbfa
commit 506636caf0

View File

@@ -89,7 +89,13 @@ public class SimpleTaskScheduler implements TaskScheduler {
// Lifecycle implementation
public boolean isRunning() {
return this.running;
this.lifecycleLock.lock();
try {
return this.running;
}
finally {
this.lifecycleLock.unlock();
}
}
public void start() {