diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2018-04-03 10:45:16 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2018-04-03 15:20:30 (GMT) |
commit | ccc38fa509301a135e68542f9965f3ea9f0547b7 (patch) | |
tree | 7c8f83fd67b8c012113f0f6977c63c5bbf56e6fc /Source/cmQtAutoGenerator.cxx | |
parent | 719b24c87244ac612cfdc85da0e75140b87df673 (diff) | |
download | CMake-ccc38fa509301a135e68542f9965f3ea9f0547b7.zip CMake-ccc38fa509301a135e68542f9965f3ea9f0547b7.tar.gz CMake-ccc38fa509301a135e68542f9965f3ea9f0547b7.tar.bz2 |
Autogen: Protected calls to cmFilePathChecksum
Closes #17861
Closes #17862
Diffstat (limited to 'Source/cmQtAutoGenerator.cxx')
-rw-r--r-- | Source/cmQtAutoGenerator.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmQtAutoGenerator.cxx b/Source/cmQtAutoGenerator.cxx index b5e1301..f4444e3 100644 --- a/Source/cmQtAutoGenerator.cxx +++ b/Source/cmQtAutoGenerator.cxx @@ -197,6 +197,22 @@ std::string cmQtAutoGenerator::FileSystem::SubDirPrefix( return cmQtAutoGen::SubDirPrefix(filename); } +void cmQtAutoGenerator::FileSystem::setupFilePathChecksum( + std::string const& currentSrcDir, std::string const& currentBinDir, + std::string const& projectSrcDir, std::string const& projectBinDir) +{ + std::lock_guard<std::mutex> lock(Mutex_); + FilePathChecksum_.setupParentDirs(currentSrcDir, currentBinDir, + projectSrcDir, projectBinDir); +} + +std::string cmQtAutoGenerator::FileSystem::GetFilePathChecksum( + std::string const& filename) +{ + std::lock_guard<std::mutex> lock(Mutex_); + return FilePathChecksum_.getPart(filename); +} + bool cmQtAutoGenerator::FileSystem::FileExists(std::string const& filename) { std::lock_guard<std::mutex> lock(Mutex_); |