Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added needed lock statements.

  • Loading branch information...
commit 594d5b15f10dd5c2face31339893d7a350d344dd 1 parent 2de6c1c
Ken Baltrinic authored
10 Rhino.Queues/Monitoring/TransactionalPerformanceCountersProvider.cs
@@ -68,7 +68,10 @@ private class TransactionalOutboundPerformanceCounters : IOutboundPerfomanceCoun
68 68
69 69 public void CommittTo(IOutboundPerfomanceCounters counters)
70 70 {
71   - counters.UnsentMessages += UnsentMessages;
  71 + lock (counters)
  72 + {
  73 + counters.UnsentMessages += UnsentMessages;
  74 + }
72 75 }
73 76 }
74 77
@@ -78,7 +81,10 @@ private class TransactionalInboundPerformanceCounters : IInboundPerfomanceCounte
78 81
79 82 public void CommittTo(IInboundPerfomanceCounters counters)
80 83 {
81   - counters.ArrivedMessages += ArrivedMessages;
  84 + lock (counters)
  85 + {
  86 + counters.ArrivedMessages += ArrivedMessages;
  87 + }
82 88 }
83 89 }
84 90 }

0 comments on commit 594d5b1

Please sign in to comment.
Something went wrong with that request. Please try again.