Commit d556b36
Make recording state in tests thread-safe (#521)
Motivation:
When the tests are run with TSAN, it complained about
concurrent modification of states in the connectivity state
recording delegate.
Modifications:
Guard access to the recorded states via a lock.
Result:
TSAN doesn't complain when running the tests.1 parent 42af0d7 commit d556b36
1 file changed
+18
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
23 | 33 | | |
24 | 34 | | |
| 35 | + | |
25 | 36 | | |
26 | | - | |
| 37 | + | |
| 38 | + | |
27 | 39 | | |
28 | | - | |
| 40 | + | |
29 | 41 | | |
30 | 42 | | |
31 | 43 | | |
| |||
49 | 61 | | |
50 | 62 | | |
51 | 63 | | |
52 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
53 | 67 | | |
54 | 68 | | |
55 | 69 | | |
| |||
0 commit comments