- Timestamp:
- Apr 17, 2006, 4:47:48 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 3 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/Makefile.am
r7256 r7329 24 24 util/loading/dynamic_loader.cc \ 25 25 util/preferences.cc \ 26 util/threading.cc \ 26 27 \ 27 28 data/data_tank.cc … … 41 42 util/executor/functor_list.h \ 42 43 util/preferences.h \ 44 util/threading.h \ 43 45 \ 44 46 util/loading/resource_manager.h \ -
trunk/src/lib/shell/shell_buffer.h
r7315 r7329 10 10 #include <stdarg.h> 11 11 #include <list> 12 #include <SDL_thread.h>12 #include "threading.h" 13 13 14 14 #define SHELL_BUFFER_SIZE 16384 //!< The Size of the input-buffers (should be large enough to carry any kind of input) -
trunk/src/lib/sound/ogg_player.h
r7310 r7329 15 15 #include <ogg/ogg.h> 16 16 #include <vorbis/vorbisfile.h> 17 #include <SDL_thread.h>17 #include "threading.h" 18 18 19 19 struct File; -
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.