00001 /* 00002 * Written by Gilles Chanteperdrix <gilles.chanteperdrix@laposte.net>. 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 00025 int pse51_cond_timedwait_prologue(xnthread_t *cur, 00026 struct __shadow_cond *shadow, 00027 struct __shadow_mutex *mutex, 00028 unsigned *count_ptr, 00029 int timed, 00030 xnticks_t to); 00031 00032 int pse51_cond_timedwait_epilogue(xnthread_t *cur, 00033 struct __shadow_cond *shadow, 00034 struct __shadow_mutex *mutex, unsigned count); 00035 00036 void pse51_condq_cleanup(pse51_kqueues_t *q); 00037 00038 void pse51_cond_pkg_init(void); 00039 00040 void pse51_cond_pkg_cleanup(void); 00041 00042 #endif /* !_POSIX_COND_H */