Changeset 6115 in orxonox.OLD for branches/network/src/lib/network/network_socket.cc
- Timestamp:
- Dec 14, 2005, 10:50:33 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_socket.cc
r6062 r6115 51 51 this->tcpSocket = sock; 52 52 53 SDL_CreateThread(thread_read, (void*)this);54 SDL_CreateThread(thread_write, (void*)this);53 readThread = SDL_CreateThread(thread_read, (void*)this); 54 writeThread = SDL_CreateThread(thread_write, (void*)this); 55 55 } 56 56 … … 63 63 incomingBufferLength = 0; 64 64 outgoingBufferLength = 0; 65 66 readThread = NULL; 67 writeThread = NULL; 65 68 66 69 … … 129 132 } 130 133 131 SDL_CreateThread(thread_read, (void*)this);132 SDL_CreateThread(thread_write, (void*)this);134 readThread = SDL_CreateThread(thread_read, (void*)this); 135 writeThread = SDL_CreateThread(thread_write, (void*)this); 133 136 } 134 137 … … 310 313 if ( !self->thread_write_running ) 311 314 { 315 //delete self; 312 316 SDL_mutexV(self->threadTerminationMutex); 313 317 } … … 378 382 if ( !self->thread_read_running ) 379 383 { 384 //delete self; 380 385 SDL_mutexV(self->threadTerminationMutex); 381 386 }
Note: See TracChangeset
for help on using the changeset viewer.