Changeset 6026 in orxonox.OLD for branches/network/src/lib
- Timestamp:
- Dec 10, 2005, 9:57:51 PM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_socket.cc
r6025 r6026 27 27 /* header for debug output */ 28 28 #include "debug.h" 29 30 static SDL_mutex* threadTerminationMutex = SDL_CreateMutex();31 29 32 30 /** … … 305 303 } 306 304 307 SDL_mutexP( threadTerminationMutex);305 SDL_mutexP(self->threadTerminationMutex); 308 306 self->thread_read_running = false; 309 307 310 308 if ( !self->thread_write_running ) 309 { 310 SDL_mutexV(self->threadTerminationMutex); 311 311 delete self; 312 SDL_mutexV(threadTerminationMutex); 312 } 313 313 314 314 315 printf("QUIT READ THREAD\n"); … … 365 366 } 366 367 367 SDL_mutexP( threadTerminationMutex);368 SDL_mutexP(self->threadTerminationMutex); 368 369 self->thread_write_running = false; 369 370 370 371 if ( !self->thread_read_running ) 372 { 373 SDL_mutexV(self->threadTerminationMutex); 371 374 delete self; 372 SDL_mutexV(threadTerminationMutex); 375 } 376 373 377 374 378 printf("QUIT WRITE THREAD\n"); -
branches/network/src/lib/network/network_socket.h
r6025 r6026 63 63 bool terminateThread; 64 64 65 staticSDL_mutex* threadTerminationMutex;65 SDL_mutex* threadTerminationMutex; 66 66 static int thread_read(void * data); 67 67 bool thread_read_running;
Note: See TracChangeset
for help on using the changeset viewer.