aboutsummaryrefslogtreecommitdiffstats
path: root/native/include
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2012-02-21 04:09:34 -0500
committerBjoern Brandenburg <bbb@mpi-sws.org>2012-04-11 07:53:40 -0400
commit3ee2fdea3adc70148e632b333067fd445e8be87e (patch)
tree1bb46a7d46f11c0fe8bdae13944c7fee0a6be21c /native/include
parentb12d172d6599d7578bc811a36d939d89d415f636 (diff)
Implement timeout in BaruahGEDF
Give up after running for 5 seconds. This is almost never triggered, but once in a while this should help to catch a pseudo-polynomial excursion.
Diffstat (limited to 'native/include')
-rw-r--r--native/include/cpu_time.h7
-rw-r--r--native/include/edf/baruah.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/native/include/cpu_time.h b/native/include/cpu_time.h
new file mode 100644
index 0000000..2484159
--- /dev/null
+++ b/native/include/cpu_time.h
@@ -0,0 +1,7 @@
1#ifndef CPU_TIME_H
2#define CPU_TIME_H
3
4// How much CPU time used (in seconds)?
5double get_cpu_usage(void);
6
7#endif
diff --git a/native/include/edf/baruah.h b/native/include/edf/baruah.h
index dcd4f14..c79b49d 100644
--- a/native/include/edf/baruah.h
+++ b/native/include/edf/baruah.h
@@ -23,7 +23,7 @@ public:
23 23
24 bool is_schedulable(const TaskSet &ts, bool check_preconditions = true); 24 bool is_schedulable(const TaskSet &ts, bool check_preconditions = true);
25 25
26 static const float MINIMUM_SLACK; 26 static const double MAX_RUNTIME;
27}; 27};
28 28
29#endif 29#endif