diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2017-08-14 09:25:55 +0200 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2017-08-16 20:34:10 +0200 |
commit | 7a3bd5b7d6cc22925582bdb5aec67d71848df803 (patch) | |
tree | a4d11174605b8561d9cca96dd9d4ff9ad12a355f /src/csharp | |
parent | 27bb4d99e219c084a37cccac2aeb3c06041731e5 (diff) |
more correct atomic counter
Diffstat (limited to 'src/csharp')
-rw-r--r-- | src/csharp/Grpc.Core/Internal/AtomicCounter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/csharp/Grpc.Core/Internal/AtomicCounter.cs b/src/csharp/Grpc.Core/Internal/AtomicCounter.cs index 64e16e4c54..20e25f9d88 100644 --- a/src/csharp/Grpc.Core/Internal/AtomicCounter.cs +++ b/src/csharp/Grpc.Core/Internal/AtomicCounter.cs @@ -64,7 +64,7 @@ namespace Grpc.Core.Internal { get { - return counter; + return Interlocked.Read(ref counter); } } } |