**/
/** Maximum number of accepted contracts (vres) **/
-#define FRSH_MAX_N_VRES 125
+#define FRSH_MAX_N_VRES 100
/** Maximum number of threads that may be scheduled by the framework **/
* Maximum number of critical sections that can be stored in a
* contract parameters object
**/
-#define FRSH_MAX_N_CRITICAL_SECTIONS 25
+#define FRSH_MAX_N_CRITICAL_SECTIONS 10
/**
* Maximum number of memory areas that can be specified for a
**/
/** Initial period of the service thread (timespec) **/
-#define FRSH_SERVICE_THREAD_PERIOD_USECS 5000000 /* 5 secs */
+#define FRSH_SERVICE_THREAD_PERIOD_USECS 500000 /* 500 msecs */
/** Initial budget of the service thread (timespec) **/
#define FRSH_SERVICE_THREAD_BUDGET_USECS 1000 /* 1 msec */
* expected response times for reconfiguration or tunning of the
* system.
**/
-#define FRSH_SERVICE_THREAD_PRIORITY (FRSH_LOWEST_THREAD_PRIORITY+1) //3 3 //3 1
+//#define FRSH_SERVICE_THREAD_PRIORITY (FRSH_LOWEST_THREAD_PRIORITY+1)
+#define FRSH_SERVICE_THREAD_PRIORITY 0
/*@}*/
int frsh_thread_get_vres_id(const frsh_thread_id_t thread,
frsh_vres_id_t *vres_id);
+/**
+ * frsh_vres_get_priority()
+ *
+ * This operation stores the priority currently associated
+ * with the specified vres in the variable pointed to by
+ * priority. It returns an error if the vres_id is not recognised.
+ *
+ * @return 0 if no error \n
+ * FRSH_ERR_BAD_ARGUMENT : if the contract argument is NULL or the value
+ * of the vres argument is not in range \n
+ * FRSH_ERR_NOT_SCHEDULED_CALLING_THREAD : if the calling thread is not
+ * scheduled under FRSH \n
+ * FRSH_ERR_INVALID_SCHEDULER_REPLY : the scheduler is wrong or not
+ * running \n
+ * FRSH_ERR_NOT_CONTRACTED_VRES: if the vres of the calling thread
+ * has been cancelled or it is not valid
+ *
+ **/
+int frsh_vres_get_priority
+ (frsh_vres_id_t vres_id,
+ int *priority);
+
/**
* frsh_vres_get_contract()
*
*/
static inline frsh_rel_time_t frsh_abs_time_extract_interval(frsh_abs_time_t past, frsh_abs_time_t future)
{
- return frsh_abs_time_extract_interval(past, future);
+ return fosa_abs_time_extract_interval(past, future);
}
/**