MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / removeWaitingSocket

Function removeWaitingSocket

source/kernel/knativesocket.cpp:229–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void 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
245S32 translateNativeSocketError(const std::shared_ptr<KNativeSocketObject>& s, int error) {
246 S32 result = 0;

Callers 3

~KNativeSocketObjectMethod · 0.85
waitForEventsMethod · 0.85
connectMethod · 0.85

Calls 3

sizeMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected