- Timestamp:
- May 24, 2018, 3:24:00 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Masterserver_FS18/src/libraries/network/Connection.cc
r11880 r11990 72 72 delete this->incomingEventsMutex_; 73 73 delete this->outgoingEventsMutex_; 74 75 // TODO: Why is enet_deinitialize() not called here?76 // Would make sense, since its counterpart, enet_initialize(), is called in the constructor.77 74 } 78 75 … … 172 169 173 170 // Sleep for 1ms 174 // TODO: Why?175 171 msleep(1); 176 172 177 173 // Send all waiting outgoing packets 178 // TODO: Why do we need a mutex to read a single variable?179 174 this->outgoingEventsMutex_->lock(); 180 175 uint32_t outgoingEventsCount = this->outgoingEvents_.size(); 181 176 this->outgoingEventsMutex_->unlock(); 182 177 183 // TODO: Not convinced about how mutexes are used here, seems kinda pointless184 178 while(outgoingEventsCount > 0) 185 179 { … … 406 400 } 407 401 408 409 402 }
Note: See TracChangeset
for help on using the changeset viewer.