+++ /dev/null
-// ----------------------------------------------------------------------
-// Copyright (C) 2005 Universidad de Cantabria, SPAIN
-//
-// FRSH/MaRTE OS web page: http://marte.unican.es/frsh
-// Contact Addresses: Julio Luis Medina Pasaje medinajl@unican.es
-// Michael González Harbour mgh@unican.es
-//
-// FRSH/MaRTE OS is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 2, or (at your option)
-// any later version.
-//
-// FRSH/MaRTE OS is distributed in the hope that it will be useful, but
-// WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// distributed with MaRTE OS; see file COPYING. If not, write to the
-// Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-// 02111-1307, USA.
-//
-// As a special exception, if you link this unit with other files to
-// produce an executable, this unit does not by itself cause the
-// resulting executable to be covered by the GNU General Public License.
-// This exception does not however invalidate any other reasons why the
-// executable file might be covered by the GNU Public License.
-//
-// -----------------------------------------------------------------------
-// prototypes for functions used in frsh_scheduler.c
-// which implement the sporadic server functionality
-// file: frsh_ss.h
-// by: Julio Medina
-// on: december 2003
-//3 roundrobin background scheduling: jan 2005
-
-#ifndef _FRSH_SS_H_
-#define _FRSH_SS_H_
-
-#include "frsh_types.h"
-
-//3 Round robin background functions
-
-int
-frsh_to_background(frsh_sched_data_t *frsh,
- int thread_index,
- posix_appsched_actions_t *actions,
- frsh_server_id_t is_a_fresh_thread,
- frsh_server_id_t is_a_generic_bind);
-
-int
-frsh_to_foreground(frsh_sched_data_t *frsh,
- frsh_server_data_t *server,
- frsh_thread_data_t *the_thread);
-
-int
-frsh_rr_schedule_next(frsh_sched_data_t *frsh,
- posix_appsched_actions_t *actions);
-
-
-
-//launch a new job in a server that is waiting in a synchronization object,
-//it is called in response to the frsh_signal_synchobject function and also
-//in response to the frsh_destroy_synchobject function, when the synch_object
-//to destroy has servers waiting.
-int
-frsh_signal_server(frsh_sched_data_t *frsh,
- int server_index);
-
-// This function performs an activation of the sporadic server
-int
-frsh_ss_activation ( frsh_sched_data_t *frsh,
- frsh_server_data_t *server,
- struct timespec now,
- posix_appsched_actions_t *actions);
-
-//Assign reply data
-int
-frsh_reply_data(frsh_server_data_t *server,
- frsh_out_msg_t *reply);
-
-// This function is called when a new job is to be activated
-int
-frsh_new_job ( frsh_sched_data_t *frsh,
- frsh_server_data_t *server,
- struct timespec now,
- posix_appsched_actions_t *actions,
- frsh_out_msg_t *reply);
-
-//annotate a replenishment operation in the list
-int
-frsh_schedule_replenishment(frsh_server_data_t *server, int kind);
-
-//do replenish the sporadic server
-int
-frsh_ss_replenish (frsh_sched_data_t *frsh,
- frsh_server_data_t *server,
- struct timespec now,
- posix_appsched_actions_t *actions,
- frsh_out_msg_t *reply);
-
-#endif // _FRSH_SS_H_