summaryrefslogtreecommitdiffstats
path: root/src/deps_log.h
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2017-10-20 17:18:16 (GMT)
committerGitHub <noreply@github.com>2017-10-20 17:18:16 (GMT)
commite234a7bdb6c42f4539c0ab09b624f191287c2c10 (patch)
tree2bfad4ed54dcb5c22672a62d74dad2db25ee32d0 /src/deps_log.h
parent0d9bf7866322c9abd4e7e537d64d979af56498d7 (diff)
parent0c42653da8ccaeb14b7c28ba9670eeac0460037e (diff)
downloadNinja-e234a7bdb6c42f4539c0ab09b624f191287c2c10.zip
Ninja-e234a7bdb6c42f4539c0ab09b624f191287c2c10.tar.gz
Ninja-e234a7bdb6c42f4539c0ab09b624f191287c2c10.tar.bz2
Merge pull request #1219 from QuLogic/resolution
Use high-resolution timestamps
Diffstat (limited to 'src/deps_log.h')
-rw-r--r--src/deps_log.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/deps_log.h b/src/deps_log.h
index cec0257..3812a28 100644
--- a/src/deps_log.h
+++ b/src/deps_log.h
@@ -57,7 +57,9 @@ struct State;
/// one's complement of the expected index of the record (to detect
/// concurrent writes of multiple ninja processes to the log).
/// dependency records are an array of 4-byte integers
-/// [output path id, output path mtime, input path id, input path id...]
+/// [output path id,
+/// output path mtime (lower 4 bytes), output path mtime (upper 4 bytes),
+/// input path id, input path id...]
/// (The mtime is compared against the on-disk output path mtime
/// to verify the stored data is up-to-date.)
/// If two records reference the same output the latter one in the file
@@ -75,10 +77,10 @@ struct DepsLog {
// Reading (startup-time) interface.
struct Deps {
- Deps(int mtime, int node_count)
+ Deps(int64_t mtime, int node_count)
: mtime(mtime), node_count(node_count), nodes(new Node*[node_count]) {}
~Deps() { delete [] nodes; }
- int mtime;
+ TimeStamp mtime;
int node_count;
Node** nodes;
};