Commit 7f4e119
Make m_scheduledUploadTime atomic for explicit thread safety
Declare m_scheduledUploadTime as std::atomic<uint64_t> and move its
update back outside the LOCKGUARD, consistent with m_runningLatency.
All accesses were already under LOCKGUARD(m_scheduledUploadMutex), but
atomic makes the thread-safe intent self-documenting and guards against
future accesses that might omit the lock.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 710a531 commit 7f4e119
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | | - | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments