Commit 521ed17
committed
Fix possible concurrency issue with the session mutex
The sessions vector may be changed concurrently with sessionCount()
being called. Thread sanitizer catches this issue.
sessionCount() is only used in session created/session destroyed log
messages, so I don't really think there's a big issue right now, and
the lock does of course come with some cost.1 parent 4caa5f0 commit 521ed17
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
0 commit comments