src/CommandScheduler.h

00001 #ifndef COMMANDSCHEDULER_H_
00002 #define COMMANDSCHEDULER_H_
00003 
00004 #include <iostream>
00005 
00006 #include "SDL.h"
00007 
00008 #include "commands/ICommand.h"
00009 
00010 class Server;
00011 
00015 class CommandScheduler
00016 {
00017 public:
00018 
00026         static CommandScheduler* getInstance();
00027         
00034     static void freeInstance();
00035        
00043     void setServer(Server* myServer);
00044     
00057     void queue(ICommand* cmd);
00058     
00059 private:
00060 
00061         static CommandScheduler* pUniqueInstance;       
00062         static SDL_mutex* mxInstance;                           
00063     Server* myServer;                                                   
00064     SDL_mutex* mxServer;                                                
00066 protected:
00067 
00068         CommandScheduler();
00069         virtual ~CommandScheduler();
00070 };
00071 
00072 #endif /*COMMANDSCHEDULER_H_*/

Generated on Mon Dec 3 04:30:12 2007 for lo-testserver by  doxygen 1.3.9.1