00001 /* 00002 $Id: mutex_pthread.h,v 1.1.1.1 2000/04/09 12:18:02 mbn Exp $ 00003 00004 ------------------------------------------------------------------------ 00005 ClanLib, the platform independent game SDK. 00006 00007 This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE 00008 version 2. See COPYING for details. 00009 00010 For a total list of contributers see CREDITS. 00011 00012 ------------------------------------------------------------------------ 00013 */ 00014 00015 #ifndef header_mutex_pthread 00016 #define header_mutex_pthread 00017 00018 #include "API/Core/System/mutex.h" 00019 00020 class CL_Mutex_Posix : public CL_Mutex 00021 { 00022 public: 00023 CL_Mutex_Posix(); 00024 virtual ~CL_Mutex_Posix(); 00025 00026 virtual void enter(); 00027 virtual void leave(); 00028 00029 virtual void wait(); 00030 virtual void notify(); 00031 virtual void notify_all(); 00032 00033 pthread_mutex_t mutex; 00034 pthread_cond_t cond; 00035 }; 00036 00037 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001