Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
badrishc committed Aug 13, 2019
1 parent 9e84d63 commit 9c60144
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cs/src/core/Epochs/FastThreadLocal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public FastThreadLocal()
if (0 == Interlocked.CompareExchange(ref instances[i], 1, 0))
{
id = i;
values[id] = default(T);
return;
}
}
Expand Down Expand Up @@ -60,6 +61,7 @@ public void DisposeThread()
public void Dispose()
{
instances[id] = 0;
values[id] = default(T);
}

public T Value
Expand Down

0 comments on commit 9c60144

Please sign in to comment.