Xenomai API
2.5.6.1
|
00001 /* 00002 * Written by Gilles Chanteperdrix <[email protected]>. 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License as 00006 * published by the Free Software Foundation; either version 2 of the 00007 * License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00019 00020 #ifndef _POSIX_COND_H 00021 #define _POSIX_COND_H 00022 00023 #include <posix/posix.h> 00024 #include <posix/mutex.h> 00025 00026 int pse51_cond_timedwait_prologue(xnthread_t *cur, 00027 struct __shadow_cond *shadow, 00028 struct __shadow_mutex *mutex, 00029 unsigned *count_ptr, 00030 int timed, 00031 xnticks_t to); 00032 00033 int pse51_cond_timedwait_epilogue(xnthread_t *cur, 00034 struct __shadow_cond *shadow, 00035 struct __shadow_mutex *mutex, unsigned count); 00036 00037 void pse51_condq_cleanup(pse51_kqueues_t *q); 00038 00039 void pse51_cond_pkg_init(void); 00040 00041 void pse51_cond_pkg_cleanup(void); 00042 00043 #endif /* !_POSIX_COND_H */