]> git.ipfire.org Git - thirdparty/ccache.git/commit
enhance: Extract lock keep-alive thread to a manager class
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 5 Dec 2022 19:50:58 +0000 (20:50 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 13 Dec 2022 19:38:37 +0000 (20:38 +0100)
commitb1b71d20b4ff0eebd6d0abc965d22d887203b364
treee22c0d7461431aa755cac79efd445379e3331bd3
parentbeb5a3db5eb9105ea5a28c814c37be788f5feab4
enhance: Extract lock keep-alive thread to a manager class

Instead of running one keep-alive thread per lock, a long-lived LockFile
now lets a separate LongLivedLockFileManager object handle keep-alive
for several locks in a single thread.
src/storage/local/StatsFile.cpp
src/test_lockfile.cpp
src/util/CMakeLists.txt
src/util/LockFile.cpp
src/util/LockFile.hpp
src/util/LongLivedLockFileManager.cpp [new file with mode: 0644]
src/util/LongLivedLockFileManager.hpp [new file with mode: 0644]
unittest/test_util_LockFile.cpp