]> git.ipfire.org Git - thirdparty/ccache.git/commit
feat: Use subsecond timestamps for include file check
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 20 Sep 2022 17:05:38 +0000 (19:05 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 21 Sep 2022 15:06:33 +0000 (17:06 +0200)
commit24cfb7998c27feb4f9bc9631dcf4601ce3a86e3a
tree0f347ce6683c6fe5da6c4f25b6da4062db07c8f4
parent2dbf9b5c3d0f1fc6b968597957d4138a507417eb
feat: Use subsecond timestamps for include file check

To avoid a race condition, ccache disables the direct mode if an include
file has a too new mtime or ctime. Previously this check used one second
resolution timestamps, which meant that a generated include file often
would disable direct mode hits for up to one second. Now ccache uses
timestamps with subsecond resolution (nanoseconds on Linux), so the
direct mode will in practice no longer have to be disabled for generated
include files.
doc/MANUAL.adoc
src/ccache.cpp