Changeset 6039 in orxonox.OLD for branches/network
- Timestamp:
- Dec 11, 2005, 1:25:51 AM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_socket.cc
r6026 r6039 64 64 outgoingBufferLength = 0; 65 65 66 #ifdef _USE_OUTGOING_BUFFER 66 67 67 thread_write_running = false; 68 #endif69 68 thread_read_running = false; 70 69 … … 106 105 SDL_DestroyMutex(outgoingBufferMutex); 107 106 SDL_DestroyMutex(socketMutex); 107 SDL_DestroyMutex(threadTerminationMutex); 108 108 } 109 109 … … 263 263 NetworkSocket * self = (NetworkSocket*)data; 264 264 265 self->thread_read_running = true; 266 265 267 while (!self->terminateThread) 266 268 { … … 292 294 SDL_mutexV(self->socketMutex); 293 295 SDL_mutexV(self->incomingBufferMutex); 294 return -1;296 break; 295 297 } 296 298 … … 311 313 delete self; 312 314 } 313 314 315 printf("QUIT READ THREAD\n"); 315 else 316 { 317 SDL_mutexV(self->threadTerminationMutex); 318 } 319 320 321 PRINTF(0)("QUIT READ THREAD\n"); 316 322 return 0; 317 323 } … … 323 329 char buffer[_LOCAL_BUFFER_SIZE]; 324 330 NetworkSocket * self = (NetworkSocket*)data; 331 332 self->thread_write_running = true; 325 333 326 334 while (!self->terminateThread) … … 361 369 362 370 SDL_mutexV(self->socketMutex); 363 return -1;371 break; 364 372 } 365 373 … … 374 382 delete self; 375 383 } 376 377 378 printf("QUIT WRITE THREAD\n"); 384 else 385 { 386 SDL_mutexV(self->threadTerminationMutex); 387 } 388 389 390 PRINTF(0)("QUIT WRITE THREAD\n"); 379 391 return 0; 380 392 } -
branches/network/src/lib/network/network_socket.h
r6026 r6039 66 66 static int thread_read(void * data); 67 67 bool thread_read_running; 68 bool thread_write_running; 68 69 #ifdef _USE_OUTGOING_BUFFER 69 70 static int thread_write(void * data); 70 bool thread_write_running;71 71 #endif 72 72 -
branches/network/src/lib/network/network_stream.cc
r6025 r6039 220 220 221 221 //delete networkSockets[i]; 222 networkSockets[i]->disconnectServer(); 222 223 networkSockets[i]->destroy(); 223 224 networkSockets[i] = NULL;
Note: See TracChangeset
for help on using the changeset viewer.