summaryrefslogtreecommitdiff
path: root/Source/Core/Absy.cs
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2015-01-26 22:24:28 +0100
committerGravatar wuestholz <unknown>2015-01-26 22:24:28 +0100
commit34a68b3dca1fff4cabc86bc692b22b4a88c5152c (patch)
tree0780e02acc536285f8f1ff0eafd92e0c4ee96531 /Source/Core/Absy.cs
parent40537b5a8339208370894ef0771d288fda351068 (diff)
Minor change
Diffstat (limited to 'Source/Core/Absy.cs')
-rw-r--r--Source/Core/Absy.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Absy.cs b/Source/Core/Absy.cs
index 817897b7..041993a7 100644
--- a/Source/Core/Absy.cs
+++ b/Source/Core/Absy.cs
@@ -128,7 +128,7 @@ namespace Microsoft.Boogie {
public Absy(IToken tok) {
Contract.Requires(tok != null);
this._tok = tok;
- this.uniqueId = AbsyNodeCount++;
+ this.uniqueId = System.Threading.Interlocked.Increment(ref AbsyNodeCount);
}
private static int AbsyNodeCount = 0;
@@ -162,7 +162,7 @@ namespace Microsoft.Boogie {
public virtual Absy Clone() {
Contract.Ensures(Contract.Result<Absy>() != null);
Absy/*!*/ result = cce.NonNull((Absy/*!*/)this.MemberwiseClone());
- result.uniqueId = AbsyNodeCount++; // BUGBUG??
+ result.uniqueId = System.Threading.Interlocked.Increment(ref AbsyNodeCount); // BUGBUG??
if (InternalNumberedMetadata != null) {
// This should probably use the lock