| 227 | } |
| 228 | |
| 229 | void removeWaitingSocket(S32 nativeSocket) { |
| 230 | { |
| 231 | BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(waitingNodeMutex); |
| 232 | for (int i = 0; i < (int)waitingNativeSockets.size(); i++) { |
| 233 | if (waitingNativeSockets[i]->nativeSocket == nativeSocket) { |
| 234 | waitingNativeSockets.erase(waitingNativeSockets.begin() + i); |
| 235 | break; |
| 236 | } |
| 237 | } |
| 238 | } |
| 239 | #ifdef BOXEDWINE_MULTI_THREADED |
| 240 | char buf = 3; |
| 241 | ::send(nativeSocketPipe[1], &buf, 1, 0); |
| 242 | #endif |
| 243 | } |
| 244 | |
| 245 | S32 translateNativeSocketError(const std::shared_ptr<KNativeSocketObject>& s, int error) { |
| 246 | S32 result = 0; |
no test coverage detected