synchronized(algorithmName){// We are synchronizing the access to the list using algorithmName so that the runningOperations can be set when deserializing
synchronized(lock){// We are synchronizing the access to the list using algorithmName so that the runningOperations can be set when deserializing
// The list of operations must be copied to a serializable list
for(Entry<AbstractOperation,Thread>entry:runningOperations.entrySet()){// Note that the entryset never returns a key weak-ref that is garbage collected
@@ -480,6 +552,7 @@ public abstract class Algorithm implements Serializable {
synchronized(algorithmName){// We are synchronizing the access to the list using algorithmName so that the runningOperations can be set when deserializing
@@ -721,7 +810,7 @@ public abstract class Algorithm implements Serializable {
* if there was no operation or the thread executing it has already finished, <tt>false</tt> is returned
*/
publicbooleanterminateOperation(UUIDoperationId){
synchronized(algorithmName){// We are synchronizing the access to the list using algorithmName so that the runningOperations can be set when deserializing
synchronized(lock){// We are synchronizing the access to the list using algorithmName so that the runningOperations can be set when deserializing