Xenomai API  2.6.5
cond.h
1 /*
2  * Written by Gilles Chanteperdrix <[email protected]>.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of the
7  * License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  */
18 
19 
20 #ifndef _POSIX_COND_H
21 #define _POSIX_COND_H
22 
23 #include <posix/posix.h>
24 #include <posix/mutex.h>
25 
26 int pse51_cond_timedwait_prologue(xnthread_t *curr,
27  struct __shadow_cond *shadow,
28  struct __shadow_mutex *mutex,
29  unsigned *count_ptr,
30  int timed,
31  xnticks_t to);
32 
33 int pse51_cond_timedwait_epilogue(xnthread_t *curr,
34  struct __shadow_cond *shadow,
35  struct __shadow_mutex *mutex, unsigned count);
36 
37 void pse51_condq_cleanup(pse51_kqueues_t *q);
38 
39 void pse51_cond_pkg_init(void);
40 
41 void pse51_cond_pkg_cleanup(void);
42 
43 #endif /* !_POSIX_COND_H */