| 110 | } |
| 111 | |
| 112 | void master_udp::remove(socket_stream* ss) |
| 113 | { |
| 114 | thread_mutex_guard guard(lock_); |
| 115 | |
| 116 | for (std::vector<socket_stream*>::iterator it = sstreams_.begin(); |
| 117 | it != sstreams_.end(); ++it) { |
| 118 | |
| 119 | if (*it == ss) { |
| 120 | sstreams_.erase(it); |
| 121 | return; |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | logger_error("not found ss=%p", ss); |
| 126 | } |
| 127 | |
| 128 | void master_udp::lock() |
| 129 | { |
no test coverage detected