Changeset 6705
- Timestamp:
- 09/02/11 19:25:18 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/ThreadSafeLog.cs
r6536 r6705 46 46 try { 47 47 return log.Messages.ToArray(); // return copy of messages 48 } 49 finally { locker.ExitReadLock(); } 48 } finally { locker.ExitReadLock(); } 50 49 } 51 50 } … … 72 71 try { 73 72 log = cloner.Clone(original.log); 74 } 75 finally { locker.ExitReadLock(); } 73 } finally { original.locker.ExitReadLock(); } 76 74 } 77 75 public override IDeepCloneable Clone(Cloner cloner) { … … 83 81 try { 84 82 log.Clear(); 85 } 86 finally { locker.ExitWriteLock(); } 83 } finally { locker.ExitWriteLock(); } 87 84 } 88 85 … … 91 88 try { 92 89 log.LogMessage(message); 93 } 94 finally { locker.ExitWriteLock(); } 90 } finally { locker.ExitWriteLock(); } 95 91 } 96 92 … … 99 95 try { 100 96 log.LogException(ex); 101 } 102 finally { locker.ExitWriteLock(); } 97 } finally { locker.ExitWriteLock(); } 103 98 } 104 99
Note: See TracChangeset
for help on using the changeset viewer.