Changeset 7329 in orxonox.OLD for trunk/src/lib/util
- Timestamp:
- Apr 17, 2006, 4:47:48 PM (19 years ago)
- Location:
- trunk/src/lib/util
- Files:
-
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/threading.cc
r7328 r7329 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include " proto_class.h"18 #include "threading.h" 19 19 20 20 using namespace std; … … 25 25 * @todo this constructor is not jet implemented - do it 26 26 */ 27 ProtoClass::ProtoClass()27 Threading::Threading () 28 28 { 29 this->setClassID(CL_PROTO_ID, "ProtoClass");30 31 /* If you make a new class, what is most probably the case when you write this file32 don't forget to:33 1. Add the new file new_class.cc to the ./src/Makefile.am34 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS35 36 Advanced Topics:37 - if you want to let your object be managed via the ObjectManager make sure to read38 the object_manager.h header comments. You will use this most certanly only if you39 make many objects of your class, like a weapon bullet.40 */41 29 } 42 30 … … 45 33 * standard deconstructor 46 34 */ 47 ProtoClass::~ProtoClass()35 Threading::~Threading () 48 36 { 49 37 // delete what has to be deleted here -
trunk/src/lib/util/threading.h
r7328 r7329 1 1 /*! 2 * @file proto_class.h 3 * @brief Definition of ... 2 * @file threading.h 3 * @brief Definition of Thread Classes. 4 * 5 * These are mainly Classes, that are used for wrapping around SDL_thread 4 6 */ 5 7 6 #ifndef _ PROTO_CLASS_H7 #define _ PROTO_CLASS_H8 #ifndef _THREADING_H 9 #define _THREADING_H 8 10 9 #include "base_object.h" 10 11 // FORWARD DECLARATION 11 #ifdef HAVE_SDL_H 12 #include <SDL_thread.h> 13 #else 14 #include <SDL/SDL_thread.h> 15 #endif 12 16 13 17 14 15 //! A class for ... 16 class ProtoClass : public BaseObject { 18 //! A class for Wrapping Threads 19 class Threading { 17 20 18 21 public: 19 ProtoClass();20 virtual ~ ProtoClass();22 Threading(); 23 virtual ~Threading(); 21 24 22 25 … … 25 28 }; 26 29 27 #endif /* _ PROTO_CLASS_H */30 #endif /* _THREADING_H */
Note: See TracChangeset
for help on using the changeset viewer.