Commit 7ae8994
committed
Don't use Interlocked.Increment/Decrement when we have the lock
It makes it hard to figure out what needs to be accessed atomically and what
doesn't. Since we have the _reentrances lock for both the increment and the
decrement, there is no need for the explicit Interlocked call here.1 parent e8150fa commit 7ae8994
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| |||
0 commit comments