Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6705


Ignore:
Timestamp:
09/02/11 19:25:18 (13 years ago)
Author:
ascheibe
Message:

#1631 fixed cloning bug in ThreadSafeLog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/ThreadSafeLog.cs

    r6536 r6705  
    4646        try {
    4747          return log.Messages.ToArray(); // return copy of messages
    48         }
    49         finally { locker.ExitReadLock(); }
     48        } finally { locker.ExitReadLock(); }
    5049      }
    5150    }
     
    7271      try {
    7372        log = cloner.Clone(original.log);
    74       }
    75       finally { locker.ExitReadLock(); }
     73      } finally { original.locker.ExitReadLock(); }
    7674    }
    7775    public override IDeepCloneable Clone(Cloner cloner) {
     
    8381      try {
    8482        log.Clear();
    85       }
    86       finally { locker.ExitWriteLock(); }
     83      } finally { locker.ExitWriteLock(); }
    8784    }
    8885
     
    9188      try {
    9289        log.LogMessage(message);
    93       }
    94       finally { locker.ExitWriteLock(); }
     90      } finally { locker.ExitWriteLock(); }
    9591    }
    9692
     
    9995      try {
    10096        log.LogException(ex);
    101       }
    102       finally { locker.ExitWriteLock(); }
     97      } finally { locker.ExitWriteLock(); }
    10398    }
    10499
Note: See TracChangeset for help on using the changeset viewer.