Skip to content

Commit bad9bcf

Browse files
bmehta001Copilot
andcommitted
Restore original m_runningLatency position to match main
Move m_runningLatency and m_scheduledUploadTime back to before the LOCKGUARD scope, matching the original code on main. The .cpp now has zero diff from main — all threading fixes are in the .hpp (std::atomic declaration). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d9826a2 commit bad9bcf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/tpm/TransmissionPolicyManager.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,11 @@ namespace MAT_NS_BEGIN {
184184
if (guard.isPaused()) {
185185
return;
186186
}
187+
m_runningLatency = latency;
188+
m_scheduledUploadTime = std::numeric_limits<uint64_t>::max();
189+
187190
{
188191
LOCKGUARD(m_scheduledUploadMutex);
189-
m_scheduledUploadTime = std::numeric_limits<uint64_t>::max();
190192
m_isUploadScheduled = false; // Allow to schedule another uploadAsync
191193
if ((m_isPaused) || (m_scheduledUploadAborted))
192194
{
@@ -195,7 +197,6 @@ namespace MAT_NS_BEGIN {
195197
return;
196198
}
197199
}
198-
m_runningLatency = latency;
199200

200201
#ifdef ENABLE_BW_CONTROLLER /* Bandwidth controller is not currently supported */
201202
if (m_bandwidthController) {

0 commit comments

Comments
 (0)