]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blob - frsh_adaption.h
Updating documentation to include the new distributed systems.
[frescor/frsh-include.git] / frsh_adaption.h
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
6 //
7 //   FRSH API web pages: http://marte.unican.es/frsh/docs/
8 //                      http://shark.sssup.it/contrib/first/docs/
9 //
10 //  This file is part of FRSH API
11 //
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)
15 //  any later version.
16 //
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.
21 //
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
25 //  02111-1307, USA.
26 //
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
32 //  Public License.
33 // -----------------------------------------------------------------------
34 // frsh_adaption.h
35 //==============================================
36 //  ******** *******    ********  **      **
37 //  **///// /**////**  **//////  /**     /**
38 //  **      /**   /** /**        /**     /**
39 //  ******* /*******  /********* /**********
40 //  **////  /**///**  ////////** /**//////**
41 //  **      /**  //**        /** /**     /**
42 //  **      /**   //** ********  /**     /**
43 //  //       //     // ////////   //      // 
44 //
45 // FRSH(FRescor ScHeduler), pronounced "fresh"
46 //==============================================
47
48 #ifndef         FRSH_ADAPTION_H_
49 #define         FRSH_ADAPTION_H_
50
51 #include <pthread.h>
52 #include <signal.h>
53
54 typedef pthread_t frsh_thread_id_t;
55
56 typedef pthread_attr_t frsh_thread_attr_t;
57
58
59 int frsh_attr_init(pthread_attr_t *attr);
60 int frsh_attr_destroy(pthread_attr_t *attr);
61
62 int frsh_attr_set_stacksize(pthread_attr_t *attr, size_t stacksize);
63
64 typedef int frsh_signal_t;
65 #define FRSH_NULL_SIGNAL -1
66
67 typedef struct _frsh_signal_info_t
68 {
69     size_t size;
70     void *data;
71 } frsh_signal_info_t;
72
73
74 #endif      /* !FRSH_ADAPTION_H_ */