Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6026 in orxonox.OLD for branches/network/src/lib


Ignore:
Timestamp:
Dec 10, 2005, 9:57:51 PM (18 years ago)
Author:
rennerc
Message:

network_socket: should compile now

Location:
branches/network/src/lib/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_socket.cc

    r6025 r6026  
    2727/* header for debug output */
    2828#include "debug.h"
    29 
    30 static SDL_mutex* threadTerminationMutex = SDL_CreateMutex();
    3129
    3230/**
     
    305303  }
    306304
    307   SDL_mutexP(threadTerminationMutex);
     305  SDL_mutexP(self->threadTerminationMutex);
    308306  self->thread_read_running = false;
    309307
    310308  if ( !self->thread_write_running )
     309  {
     310    SDL_mutexV(self->threadTerminationMutex);
    311311    delete self;
    312   SDL_mutexV(threadTerminationMutex);
     312  }
     313
    313314
    314315  printf("QUIT READ THREAD\n");
     
    365366  }
    366367
    367   SDL_mutexP(threadTerminationMutex);
     368  SDL_mutexP(self->threadTerminationMutex);
    368369  self->thread_write_running = false;
    369370
    370371  if ( !self->thread_read_running )
     372  {
     373    SDL_mutexV(self->threadTerminationMutex);
    371374    delete self;
    372   SDL_mutexV(threadTerminationMutex);
     375  }
     376
    373377
    374378  printf("QUIT WRITE THREAD\n");
  • branches/network/src/lib/network/network_socket.h

    r6025 r6026  
    6363  bool terminateThread;
    6464
    65   static SDL_mutex* threadTerminationMutex;
     65  SDL_mutex* threadTerminationMutex;
    6666  static int thread_read(void * data);
    6767  bool thread_read_running;
Note: See TracChangeset for help on using the changeset viewer.