Skip to content

Commit

Permalink
Try to remove lock
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed May 2, 2024
1 parent 91a6867 commit 4c9c41d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions servicetests/tests/JobsExecution/JobsExecution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,6 @@ void JobsExecution::startNextPendingJob()
if (response && response->Execution.has_value())
{
fprintf(stderr, "Start Job %s\n", response->Execution.value().JobId.value().c_str());
// Make tsan happy.
std::lock_guard<std::mutex> lock(m_jobsMutex);
m_currentJobId = response->Execution->JobId.value();
m_currentExecutionNumber = response->Execution->ExecutionNumber.value();
m_currentVersionNumber = response->Execution->VersionNumber.value();
Expand Down Expand Up @@ -301,8 +299,6 @@ void JobsExecution::updateCurrentJobStatus(Aws::Iotjobs::JobStatus jobStatus)
int32_t currentVersionNumber;

{
// Make tsan happy.
std::lock_guard<std::mutex> lock(m_jobsMutex);
jobId = m_currentJobId;
currentExecutionNumber = m_currentExecutionNumber;
currentVersionNumber = m_currentVersionNumber;
Expand Down

0 comments on commit 4c9c41d

Please sign in to comment.