Changeset 6784 for branches/GP.Grammar.Editor/HeuristicLab.Core/3.3
- Timestamp:
- 09/16/11 12:00:36 (13 years ago)
- Location:
- branches/GP.Grammar.Editor/HeuristicLab.Core/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Core/3.3/Constraints/Constraint.cs
r5445 r6784 48 48 protected Constraint() { 49 49 this.Active = false; 50 if (AllowedConstraintOperations != null && AllowedConstraintOperations. Count() != 0)50 if (AllowedConstraintOperations != null && AllowedConstraintOperations.Any()) 51 51 this.ConstraintOperation = AllowedConstraintOperations.ElementAt(0); 52 52 } -
branches/GP.Grammar.Editor/HeuristicLab.Core/3.3/ThreadSafeLog.cs
r6618 r6784 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.