From 4a00927f139c545288c1ae2d197d4fdc8fa36051 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 2 Jul 2024 22:49:38 +0530 Subject: queue/queue_ancestors_rm: init --- include/jobs.h | 4 ++++ include/queue.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'include') 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 +#include #include #include @@ -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 diff --git a/include/queue.h b/include/queue.h index dd7e4db..c81f062 100644 --- a/include/queue.h +++ b/include/queue.h @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -21,6 +22,7 @@ struct queue { sem_t sem; queue_state_t state; pthread_mutex_t mutex; + uint64_t age; }; struct queue_thread { -- cgit v1.2.3