about summary refs log tree commit diff homepage
path: root/torus.h
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2017-08-02 00:55:52 -0400
committerJune McEnroe <programble@gmail.com>2017-08-02 00:55:52 -0400
commit94a62246be9c8683d623ebe515af98ad698dbad6 (patch)
treee3b4beecfe6b0cd315a5a9379aa90fc68dbdf9d5 /torus.h
parentMadvise RANDOM and NOSYNC (diff)
downloadtorus-94a62246be9c8683d623ebe515af98ad698dbad6.tar.gz
torus-94a62246be9c8683d623ebe515af98ad698dbad6.zip
Split tile access and modify
Diffstat (limited to '')
-rw-r--r--torus.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/torus.h b/torus.h
index 9158ef7..6b28f8c 100644
--- a/torus.h
+++ b/torus.h
@@ -27,10 +27,12 @@ enum {
 
 struct Tile {
     time_t create;
-    time_t access;
+    time_t modify;
     char cells[CELL_ROWS][CELL_COLS] ALIGNED(16);
     uint8_t colors[CELL_ROWS][CELL_COLS] ALIGNED(16);
+    uint32_t modifyCount;
     uint32_t accessCount;
+    time_t access;
 } ALIGNED(4096);
 static_assert(sizeof(struct Tile) == 4096, "struct Tile is page-sized");
 static_assert(offsetof(struct Tile, cells) == 16, "stable cells offset");