// before suspend or activate it.
// -----------------------------------------------------------------------
-#include "fosa_app_def_sched.h"
-#include "fosa_configuration_parameters.h"
-#include "fosa_threads_and_signals.h"
-#include "frsh_error.h"
-#include "frsh_fosa.h"
+#include "fosa.h"
#include <pthread.h>
#include <stdio.h>
sch_thread_data->scheduler_ops.signal
(scheduler_data,
event.event_info.siginfo.si_signo,
- *((frsh_signal_info_t *)(&(event.event_info.siginfo.si_value))),
+ *((fosa_signal_info_t *)(&(event.event_info.siginfo.si_value))),
// the above casting construct is used to overcome the compiler
// restriction that does not allow casts between unions
&sched_actions,
* implementation and dependant applications
**/
int fosa_thread_attr_set_appscheduled
- (frsh_thread_attr_t *attr,
+ (fosa_thread_attr_t *attr,
bool appscheduled)
{
int error_code;
* implementation and dependant applications
**/
int fosa_thread_attr_get_appscheduled
- (const frsh_thread_attr_t *attr,
+ (const fosa_thread_attr_t *attr,
bool *appscheduled)
{
int policy, ret_value;
* implementation and dependant applications
**/
int fosa_thread_attr_set_appsched_params
- (frsh_thread_attr_t *attr,
+ (fosa_thread_attr_t *attr,
const void *param,
size_t paramsize)
{
* implementation and dependant applications
**/
int fosa_thread_attr_get_appsched_params
- (const frsh_thread_attr_t *attr,
+ (const fosa_thread_attr_t *attr,
void *param,
size_t *paramsize)
{
* implementation and dependant applications
**/
int fosa_ads_set_appscheduled
- (frsh_thread_id_t thread,
+ (fosa_thread_id_t thread,
bool appscheduled)
{
int error_code = 0;
* implementation and dependant applications
**/
int fosa_ads_get_appscheduled
- (frsh_thread_id_t thread,
+ (fosa_thread_id_t thread,
bool *appscheduled)
{
int error_code, policy;
* implementation and dependant applications
**/
int fosa_ads_set_appsched_params
- (frsh_thread_id_t thread,
+ (fosa_thread_id_t thread,
const void *param,
size_t paramsize)
{
* implementation and dependant applications.
**/
int fosa_ads_get_appsched_params
- (frsh_thread_id_t thread,
+ (fosa_thread_id_t thread,
void *param,
size_t *paramsize)
{
**/
int fosa_adsactions_add_reject(
fosa_ads_actions_t *sched_actions,
- frsh_thread_id_t thread)
+ fosa_thread_id_t thread)
{
#ifdef FULL_ERROR_CHECKING
// check errors
**/
int fosa_adsactions_add_activate(
fosa_ads_actions_t *sched_actions,
- frsh_thread_id_t thread,
+ fosa_thread_id_t thread,
fosa_ads_urgency_t urgency)
{
#ifdef FULL_ERROR_CHECKING
**/
int fosa_adsactions_add_suspend(
fosa_ads_actions_t *sched_actions,
- frsh_thread_id_t thread)
+ fosa_thread_id_t thread)
{
#ifdef FULL_ERROR_CHECKING
// check errors
**/
int fosa_adsactions_add_thread_notification(
fosa_ads_actions_t *sched_actions,
- frsh_thread_id_t thread,
+ fosa_thread_id_t thread,
fosa_clock_id_t clock_id,
const struct timespec *at_time)
{
* notify it to the system console and then terminate the FRSH
* implementation and dependant applications
**/
-int fosa_ads_set_handled_signal_set(frsh_signal_t set[], int size)
+int fosa_ads_set_handled_signal_set(fosa_signal_t set[], int size)
{
int i;
* notification message.
*
* Besides for the scheduler we don't have always a destinator
- * thread_id needed in frsh_signal_queue for OSE.
+ * thread_id needed in fosa_signal_queue for OSE.
*
* So the fosa implementation will solve this issue internally.
*
* notify it to the system console and then terminate the FRSH
* implementation and dependant applications
**/
-int fosa_signal_queue_scheduler(frsh_signal_t signal, frsh_signal_info_t info)
+int fosa_signal_queue_scheduler(fosa_signal_t signal, fosa_signal_info_t info)
{
// In MaRTE OS this function is completely equivalent to
// fosa_signal_queue, because there is no notion of receiver.
- frsh_thread_id_t receiver = 0; // Dummy value, not used by MaRTE OS
+ fosa_thread_id_t receiver = 0; // Dummy value, not used by MaRTE OS
return fosa_signal_queue(signal, info, receiver);
}