| 133 | fcntl(fd, F_SETFL, flags | O_NONBLOCK); |
| 134 | } |
| 135 | ~SocketThread() { |
| 136 | stop_ = true; |
| 137 | condition_.notify_all(); |
| 138 | worker_.join(); |
| 139 | int flags = fcntl(fd_, F_GETFL, 0); |
| 140 | fcntl(fd_, F_SETFL, flags & ~O_NONBLOCK); |
| 141 | } |
| 142 | |
| 143 | template <typename T> |
| 144 | std::future<void> send(const T* buffer, size_t size) { |
nothing calls this directly
no outgoing calls
no test coverage detected