diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2018-04-12 10:38:32 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2018-04-12 11:04:10 +0000 |
commit | 8ddf083330fdad8a153d9084470363ae0c2b3217 (patch) | |
tree | 868ecfa84c780e1ca7de916c622559833defac26 /src/lib/corelib/buildgraph/productbuilddata.h | |
parent | 92d0bb4d90ec512e3e1d7d60e98a6af8f242f4de (diff) |
Guard concurrent access of ProductBuildData::m_jsArtifactsMapUpToDate
This fixes a race condition where product.artifacts would contain
outdated information.
Change-Id: I17130a11fbce557314a0157da61c15dae2271189
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/buildgraph/productbuilddata.h')
-rw-r--r-- | src/lib/corelib/buildgraph/productbuilddata.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/corelib/buildgraph/productbuilddata.h b/src/lib/corelib/buildgraph/productbuilddata.h index ae4f53f20..553f79159 100644 --- a/src/lib/corelib/buildgraph/productbuilddata.h +++ b/src/lib/corelib/buildgraph/productbuilddata.h @@ -88,8 +88,7 @@ public: unsigned int buildPriority() const { return m_buildPriority; } void setBuildPriority(unsigned int prio) { m_buildPriority = prio; } - bool isJsArtifactsMapUpToDate() const { return m_jsArtifactsMapUpToDate; } - void setJsArtifactsMapUpToDate() { m_jsArtifactsMapUpToDate = true; } + bool checkAndSetJsArtifactsMapUpToDateFlag(); template<PersistentPool::OpType opType> void completeSerializationOp(PersistentPool &pool) { |