]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_spare_capacity_types.h
trace distributed flag
[frescor/frsh-include.git] / frsh_spare_capacity_types.h
index 22abf7e7a7c8df32c0b53932226beb806ce48ead..fd72815ad1cc69d6a6049b5a29089a9eeda1ae3a 100644 (file)
@@ -74,6 +74,8 @@
 
 #include <time.h>
 
+FRSH_CPP_BEGIN_DECLS
+
 /**
  * @file frsh_spare_capacity_types.h
  **/
 /*************************/
 
 /** Granularity of spare capacity requirements: continuous or discrete **/
-typedef enum {FRSH_GRT_CONTINUOUS, FRSH_GRT_DISCRETE} frsh_granularity_t;
+typedef enum {FRSH_GR_CONTINUOUS, FRSH_GR_DISCRETE} frsh_granularity_t;
 
-/** Utilization (C and T) **/
+/** Utilization (C, T, and D) **/
 typedef struct {
-    struct timespec    budget;    // Execution time
-    struct timespec    period;    // Period
+    frsh_rel_time_t    budget;    // Execution time
+    frsh_rel_time_t    period;    // Period
+    frsh_rel_time_t    deadline;  // Deadline
 } frsh_utilization_t;
 
 /** List of utilization values **/
@@ -104,7 +107,7 @@ typedef struct {
 } frsh_utilization_set_t;
 
 // Constants for assigning default values
-#define FRSH_DEFAULT_GRANULARITY         FRSH_GRT_CONTINUOUS
+#define FRSH_DEFAULT_GRANULARITY         FRSH_GR_CONTINUOUS
 #define FRSH_DEFAULT_WEIGHT              0
 #define FRSH_DEFAULT_IMPORTANCE          1
 
@@ -114,4 +117,8 @@ typedef struct {
    (frsh_utilization_set_t *)NULL
 
 /*@}*/
+
+FRSH_CPP_END_DECLS
+
+
 #endif             /* !FRSH_SPARE_CAPACITY_TYPES_H_ */