]> 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 cb16d87978e31a5d98d5077a07b4ccf95219c629..fd72815ad1cc69d6a6049b5a29089a9eeda1ae3a 100644 (file)
@@ -74,6 +74,8 @@
 
 #include <time.h>
 
+FRSH_CPP_BEGIN_DECLS
+
 /**
  * @file frsh_spare_capacity_types.h
  **/
 /* D E F I N I T I O N S */
 /*************************/
 
-/** Granularity of spare capacity requirements **/
+/** Granularity of spare capacity requirements: continuous or discrete **/
 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 **/
@@ -114,4 +117,8 @@ typedef struct {
    (frsh_utilization_set_t *)NULL
 
 /*@}*/
+
+FRSH_CPP_END_DECLS
+
+
 #endif             /* !FRSH_SPARE_CAPACITY_TYPES_H_ */