Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

mutex_beos.h

Go to the documentation of this file.
00001 /*
00002         $Id: mutex_beos.h,v 1.1 2000/07/18 17:04:27 sphair 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_beos
00016 #define header_mutex_beos
00017 
00018 #include "API/Core/System/mutex.h"
00019 
00020 #include <be/kernel/OS.h>
00021 
00022 class CL_Mutex_BeOS : public CL_Mutex
00023 {
00024 public:
00025         CL_Mutex_BeOS();
00026         virtual ~CL_Mutex_BeOS();
00027         
00028         virtual void enter();
00029         virtual void leave();
00030 
00031         virtual void wait();
00032         virtual void notify();
00033         virtual void notify_all();
00034 
00035 private:        
00036         sem_id sem;
00037         thread_id owner;
00038 };
00039 
00040 #endif

Generated at Wed Apr 4 19:54:02 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001