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

ThreadGroup.h

Go to the documentation of this file.
00001 
00002 
00003 
00004 #ifndef THREADGROUP_H
00005 #define THREADGROUP_H
00006 
00007 #include "Thread.h"
00008 #include <vector>
00009 
00010 namespace wkgl {
00011 #define UINT unsigned int
00012 #define THREAD_UNKNOWN 100
00013 
00024 class ThreadGroup : public Thread
00025 {
00026   protected:
00027     std::vector <Thread*> threads;    
00028   public:
00032     ThreadGroup();
00033 
00037     ThreadGroup( char* name );
00038 
00041     ~ThreadGroup(void);
00042     
00046     virtual void addThread( Thread* t );
00047 
00051     virtual BOOL start();
00052 
00056     virtual BOOL stop();
00057 
00061     virtual BOOL suspend();
00062 
00066     virtual BOOL resume();
00067 
00071     virtual BOOL waitForCompletion( DWORD mill );
00072 
00076     virtual BOOL waitForCompletion();
00077 
00081     virtual SFLAG getState();
00082 };
00083 }
00084 #endif

Generated on Tue Apr 29 03:18:49 2003 for GuiLib by doxygen1.2.18