Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7847 in orxonox.OLD


Ignore:
Timestamp:
May 25, 2006, 1:12:30 AM (18 years ago)
Author:
bensch
Message:

trunk: some minor fixes

Location:
trunk/src/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/sound/sound_engine.h

    r7460 r7847  
    3737
    3838    /** @param listener the listener in the scene */
    39   void setListener(const PNode* listener) { this->listener = listener; };
     39    void setListener(const PNode* listener) { this->listener = listener; };
    4040    void setDopplerValues(ALfloat dopplerFactor, ALfloat dopplerVelocity);
    4141
  • trunk/src/lib/util/threading.cc

    r7737 r7847  
    2727 * @todo this constructor is not jet implemented - do it
    2828*/
    29 Thread::Thread()
    30 {
    31 }
     29// Thread::Thread()
     30// {
     31// }
    3232
    3333
     
    3535 * standard deconstructor
    3636*/
    37 Thread::~Thread()
    38 {
    39   // delete what has to be deleted here
    40 }
     37// Thread::~Thread()
     38// {
     39//   // delete what has to be deleted here
     40// }
    4141
    4242}
  • trunk/src/lib/util/threading.h

    r7737 r7847  
    2222
    2323  public:
    24     Thread();
    25     virtual ~Thread();
     24    Thread(int (*fn)(void *), void *data) { this->thread = SDL_CreateThread(fn, data); };
     25    virtual ~Thread() { SDL_KillThread(this->thread); }
     26    void exit ( int returnCode = 0 );
     27    bool isFinished () const;
     28    bool isRunning () const;
     29    void wait() { SDL_WaitThread(this->thread, NULL); };
     30
     31    void start();
     32    void terminate();
    2633
    2734
    2835  private:
     36    SDL_Thread* thread;
    2937
    3038  };
Note: See TracChangeset for help on using the changeset viewer.