Commit 072fd54
committed
race condition: unsafe double check locking
tables.Add is called from within a lock, so presumably this code has
been written to attemp to be thread safe, thus tables.TryGetValue must
also be protected by lock1 parent 8e3e42b commit 072fd54
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
| 407 | + | |
408 | 408 | | |
| 409 | + | |
| 410 | + | |
409 | 411 | | |
410 | 412 | | |
411 | 413 | | |
| |||
0 commit comments