1 // -----------------------------------------------------------------------
2 // Copyright (C) 2005 Mälardalen University, SWEDEN
3 // Scuola Superiore S.Anna, ITALY
4 // Universidad de Cantabria, SPAIN
5 // University of York, UK
7 // FRSH API web pages: http://marte.unican.es/frsh/docs/
8 // http://shark.sssup.it/contrib/first/docs/
10 // This file is part of FRSH API
12 // FRSH API is free software; you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation; either version 2, or (at your option)
17 // FRSH API is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 // General Public License for more details.
22 // You should have received a copy of the GNU General Public License
23 // distributed with FRSH API; see file COPYING. If not, write to the
24 // Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
27 // As a special exception, if you include this header file into source
28 // files to be compiled, this header file does not by itself cause
29 // the resulting executable to be covered by the GNU General Public
30 // License. This exception does not however invalidate any other
31 // reasons why the executable file might be covered by the GNU General
33 // -----------------------------------------------------------------------
35 //==============================================
36 // ******** ******* ******** ** **
37 // **///// /**////** **////// /** /**
38 // ** /** /** /** /** /**
39 // ******* /******* /********* /**********
40 // **//// /**///** ////////** /**//////**
41 // ** /** //** /** /** /**
42 // ** /** //** ******** /** /**
43 // // // // //////// // //
45 // FRSH(FRescor ScHeduler), pronounced "fresh"
46 //==============================================
48 #ifndef FRSH_ADAPTION_H_
49 #define FRSH_ADAPTION_H_
54 typedef pthread_t frsh_thread_id_t;
56 typedef pthread_attr_t frsh_thread_attr_t;
59 int frsh_attr_init(pthread_attr_t *attr);
60 int frsh_attr_destroy(pthread_attr_t *attr);
62 int frsh_attr_set_stacksize(pthread_attr_t *attr, size_t stacksize);
64 typedef int frsh_signal_t;
65 #define FRSH_NULL_SIGNAL -1
67 typedef struct _frsh_signal_info_t
74 #endif /* !FRSH_ADAPTION_H_ */