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

thread_pthread.h

Go to the documentation of this file.
00001 /*
00002         $Id: thread_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_thread_pthread
00016 #define header_thread_pthread
00017 
00018 #include "API/Core/System/thread.h"
00019 
00020 class CL_Thread_Posix : public CL_Thread
00021 {
00022 public:
00023         CL_Thread_Posix(CL_Runnable *runnable);
00024         virtual ~CL_Thread_Posix();
00025 
00026         virtual void start();
00027         virtual void terminate();
00028         virtual void wait();
00029 
00030 private:
00031         CL_Runnable *runnable;
00032         pthread_t thread;
00033         bool running;
00034 
00035         static void *run_init(void *self);
00036 };
00037 
00038 #endif

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