ThreadTester.h

Go to the documentation of this file.
00001 /*
00002  * ThreadTester.h
00003  *
00004  *  Created on: Dec 21, 2011
00005  *      Author: sushil
00006  */
00007 
00008 #ifndef THREADTESTER_H_
00009 #define THREADTESTER_H_
00010 
00011 #include "DEBUG.h"
00012 #include <boost/thread.hpp>
00013 #include <engine.h>
00014 
00015 class ThreadTester {
00016 public:
00017 
00018         FastEcslent::Engine *engine;
00019 
00020         ThreadTester(FastEcslent::Engine *eng){
00021                 engine = eng;
00022         }
00023 
00024         void go(){
00025                 for (int i = 0; i < 1000000; i++) {
00026                         DEBUG(std::cout << "Number of ents: " << engine->entityMgr->nEnts << std::endl;)
00027                         engine->entityMgr->ents[0]->print();
00028 
00029                 }
00030         }
00031 
00032 };
00033 
00034 
00035 #endif /* THREADTESTER_H_ */

Generated on Fri Dec 13 14:54:16 2013 for FastECSLent by  doxygen 1.5.4