Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages
include / osip2

osip_condv.h

Go to the documentation of this file.
00001 /*
00002  The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
00003  Copyright (C) 2001,2002,2003,2004 Aymeric MOIZARD jack@atosc.org
00004 
00005  This library is free software; you can redistribute it and/or
00006  modify it under the terms of the GNU Lesser General Public
00007  License as published by the Free Software Foundation; either
00008  version 2.1 of the License, or (at your option) any later version.
00009 
00010  This library is distributed in the hope that it will be useful,
00011  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00013  Lesser General Public License for more details.
00014 
00015  You should have received a copy of the GNU Lesser General Public
00016  License along with this library; if not, write to the Free Software
00017  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00018 */
00019 
00020 #ifndef __OSIP_CONDV_H__
00021 #define __OSIP_CONDV_H__
00022 
00023 #include <stdio.h>
00024 
00025 #ifdef OSIP_MT
00026 
00027 #ifdef ENABLE_MPATROL
00028 #include <mpatrol.h>
00029 #endif
00030 
00045 #ifdef __cplusplus
00046 extern "C"
00047 {
00048 #endif
00049 
00050 #if defined(__PSOS__)
00051 
00052 /* TODO */
00053 
00054 #else
00055 
00056 
00057 /* condv implementation */
00058 #if defined(WIN32) || defined(_WIN32_WCE)
00059 /* Prevent struct redefinition if Pthreads for Win32 is used */
00060 #ifndef HAVE_STRUCT_TIMESPEC
00061 #define HAVE_STRUCT_TIMESPEC 1
00062 
00066 struct timespec
00067 {
00068 long tv_sec;
00069 long tv_nsec;
00070 };
00071 #endif
00072 #endif
00073 
00074 struct osip_cond;
00075 
00079 struct osip_cond *osip_cond_init (void);
00084 int osip_cond_destroy (struct osip_cond *cond);
00089 int osip_cond_signal (struct osip_cond *cond);
00090 
00096 int osip_cond_wait (struct osip_cond *cond, struct osip_mutex *mut);
00103 int osip_cond_timedwait (struct osip_cond *cond, struct osip_mutex *mut,
00104 const struct timespec *abstime);
00105 
00106 
00107 #ifdef __cplusplus
00108 }
00109 #endif
00110 
00111 #endif
00112 
00115 #endif
00116 
00117 #endif

Generated on Tue Feb 22 00:59:46 2005 for libosip by doxygen 1.4.1

AltStyle によって変換されたページ (->オリジナル) /