aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2015-12-17 16:44:59 -0500
committerBjoern Brandenburg <bbb@mpi-sws.org>2015-12-18 03:34:40 -0500
commit3e0c32c25e6f32c24c53c0a401d67f1c05576c38 (patch)
tree9fe7cfe94402cbed6eaabdcfdad6060a37368c1e /include/litmus
parentb8438dac7a15cc2a584663f8e6d30ed85c2eb588 (diff)
Add alternate complete_job() default implementation
Let jobs sleep like regular Linux tasks by suspending and waking them with a one-shot timer. Plugins can opt into using this implementation instead of the classic complete_job() implementation (or custom implementations).
Diffstat (limited to 'include/litmus')
-rw-r--r--include/litmus/jobs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/litmus/jobs.h b/include/litmus/jobs.h
index 24771dfaebf8..7db931b2b89f 100644
--- a/include/litmus/jobs.h
+++ b/include/litmus/jobs.h
@@ -6,5 +6,7 @@ void release_at(struct task_struct *t, lt_t start);
6 6
7long default_wait_for_release_at(lt_t release_time); 7long default_wait_for_release_at(lt_t release_time);
8long complete_job(void); 8long complete_job(void);
9long complete_job_oneshot(void);
10long sleep_until_next_release(void);
9 11
10#endif 12#endif