diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-12-17 16:44:59 -0500 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-12-18 03:34:40 -0500 |
commit | 3e0c32c25e6f32c24c53c0a401d67f1c05576c38 (patch) | |
tree | 9fe7cfe94402cbed6eaabdcfdad6060a37368c1e /include/litmus | |
parent | b8438dac7a15cc2a584663f8e6d30ed85c2eb588 (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.h | 2 |
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 | ||
7 | long default_wait_for_release_at(lt_t release_time); | 7 | long default_wait_for_release_at(lt_t release_time); |
8 | long complete_job(void); | 8 | long complete_job(void); |
9 | long complete_job_oneshot(void); | ||
10 | long sleep_until_next_release(void); | ||
9 | 11 | ||
10 | #endif | 12 | #endif |