#ifndef _FRSH_OPAQUE_TYPES_H_
#define _FRSH_OPAQUE_TYPES_H_
+FRSH_CPP_BEGIN_DECLS
/**
* @file frsh_opaque_types.h
\
/** Minimum budget needed to perform a job. With the energy
module this will be an array **/ \
- struct timespec budget_min; \
+ frsh_rel_time_t budget_min; \
\
/** Maximum period that the system system can sustain **/ \
- struct timespec period_max; \
+ frsh_rel_time_t period_max; \
\
/** Maximum budget that the vres can use
(and would be happy to have). With the energy module
this will be an array **/ \
- struct timespec budget_max; \
+ frsh_rel_time_t budget_max; \
\
/** Minimum period for that
the system can use (and would be happy to have) **/ \
- struct timespec period_min; \
+ frsh_rel_time_t period_min; \
\
/** Set of discrete values for budget and period. With the
energy module this will be an array **/ \
bool d_equals_t; \
\
/** Deadline (will be ignored if d_equals_t is TRUE **/ \
- struct timespec deadline; \
+ frsh_rel_time_t deadline; \
\
/** Signal parameters for the case of
attempting to use too much budget **/ \
the allocated budget and capacity will be
maintained across negotiations and will
not be affected for dynamic spare capacity **/ \
- struct timespec stability_time; \
+ frsh_rel_time_t stability_time; \
\
/** Low level parameter related with the elegibility
preempt other threads **/ \
#define FRSH_CSECT_T_OPAQUE struct { \
frsh_csect_op_kind_t op_kind; \
frsh_sharedobj_handle_t obj_handle; \
- struct timespec wcet; \
- struct timespec blocking; \
+ frsh_rel_time_t wcet; \
+ frsh_rel_time_t blocking; \
frsh_csect_op_t op; \
frsh_memory_areas_t areas; \
+ frsh_memory_areas_t storage; \
}
/*@}*/
+FRSH_CPP_END_DECLS
+
#endif // _FRSH_OPAQUE_TYPES_H_