diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2018-04-03 11:36:47 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2018-04-03 15:20:30 (GMT) |
commit | 1d2c9d8c6d5ae93bd57e3dc8f1b54c54c3422644 (patch) | |
tree | 397c0fc29d36f80eba9df44b46e41c0611138c4d /Source/cmQtAutoGenerator.h | |
parent | ccc38fa509301a135e68542f9965f3ea9f0547b7 (diff) | |
download | CMake-1d2c9d8c6d5ae93bd57e3dc8f1b54c54c3422644.zip CMake-1d2c9d8c6d5ae93bd57e3dc8f1b54c54c3422644.tar.gz CMake-1d2c9d8c6d5ae93bd57e3dc8f1b54c54c3422644.tar.bz2 |
Autogen: Use std::istreambuf_iterator for file so string reading
This adds a dedicated mutex for file reading and writing to
cmQtAutoGenerator::FileSystem. The purpose of the change is
to avoid that long files reads block cmsys based path computations,
which are protected by an other mutex.
Diffstat (limited to 'Source/cmQtAutoGenerator.h')
-rw-r--r-- | Source/cmQtAutoGenerator.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmQtAutoGenerator.h b/Source/cmQtAutoGenerator.h index 0995b46..299e4c2 100644 --- a/Source/cmQtAutoGenerator.h +++ b/Source/cmQtAutoGenerator.h @@ -99,7 +99,12 @@ public: std::string GetFilePathChecksum(std::string const& filename); // -- File access + /// @brief Wrapper for cmSystemTools::FileExists bool FileExists(std::string const& filename); + /// @brief Wrapper for cmSystemTools::FileExists + bool FileExists(std::string const& filename, bool isFile); + /// @brief Wrapper for cmSystemTools::FileLength + unsigned long FileLength(std::string const& filename); bool FileIsOlderThan(std::string const& buildFile, std::string const& sourceFile, std::string* error = nullptr); |