Unlock output lock early
The following things are read-only or guarded by other mutex.
This commit is contained in:
parent
bdbfd42e5e
commit
9c4f0277bd
|
@ -454,6 +454,7 @@ void BuildAction::appendOutput(std::string_view output)
|
||||||
const auto buildingLock = m_setup->building.lockToWrite();
|
const auto buildingLock = m_setup->building.lockToWrite();
|
||||||
logfiles.emplace_back(m_outputSession->logFilePath());
|
logfiles.emplace_back(m_outputSession->logFilePath());
|
||||||
}
|
}
|
||||||
|
outputLock.unlock();
|
||||||
if (!m_outputSession->result.errorCode) {
|
if (!m_outputSession->result.errorCode) {
|
||||||
m_outputSession->writeData(output);
|
m_outputSession->writeData(output);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue