]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blob - frsh_adaption.h
fd7eae5c20935ea812eab83ffef9c55c74c8cc68
[frescor/frsh-include.git] / frsh_adaption.h
1 /*
2 ** frsh_adaption.h
3 ** 
4 ** Made by Miguel marciano
5 ** Login   <miguel@namir.ctr.unican.es>
6 ** 
7 ** Started on  Mon Feb 12 17:20:19 2007 Miguel marciano
8 ** Last update Mon Feb 12 17:20:19 2007 Miguel marciano
9 */
10
11 #ifndef         FRSH_ADAPTION_H_
12 #define         FRSH_ADAPTION_H_
13
14 #include <pthread.h>
15 #include <signal.h>
16
17 typedef pthread_t frsh_thread_id_t;
18
19 typedef pthread_attr_t frsh_thread_attr_t;
20
21
22 int frsh_attr_init(pthread_attr_t *attr);
23 int frsh_attr_destroy(pthread_attr_t *attr);
24
25 int frsh_attr_set_stacksize(pthread_attr_t *attr, size_t stacksize);
26
27 typedef int frsh_signal_t;
28 #define FRSH_NULL_SIGNAL -1
29
30 typedef struct _frsh_signal_info_t
31 {
32     size_t size;
33     void *data;
34 } frsh_signal_info_t;
35
36
37 #endif      /* !FRSH_ADAPTION_H_ */