aboutsummaryrefslogtreecommitdiff
path: root/include/jobs.h
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-07-02 22:49:38 +0530
committersinanmohd <sinan@sinanmohd.com>2024-07-02 22:58:54 +0530
commit4a00927f139c545288c1ae2d197d4fdc8fa36051 (patch)
tree4162d3e437955ec799a25ec1595d2086935fa792 /include/jobs.h
parentefeaf15d037e58a0a6c41db226d79bec684efa99 (diff)
queue/queue_ancestors_rm: init
Diffstat (limited to 'include/jobs.h')
-rw-r--r--include/jobs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/jobs.h b/include/jobs.h
index 54152cf..41d8adf 100644
--- a/include/jobs.h
+++ b/include/jobs.h
@@ -1,4 +1,5 @@
#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
#include <sys/queue.h>
@@ -26,6 +27,8 @@ struct job {
/* solver */
ssize_t id;
+ uint64_t age;
+ bool stale;
};
CIRCLEQ_HEAD(job_clist, job);
@@ -44,6 +47,7 @@ int jobs_init(FILE **stream, char *expr);
void job_free(struct job *j);
int job_parents_list_insert(struct job *job, struct job *parent);
void job_deps_list_rm(struct job *job, struct job *dep);
+void job_stale_set(struct job *job);
#define JOBS_H
#endif