{
MonoInternalThread *curthread = mono_thread_internal_current ();
SOCKET newsock = INVALID_SOCKET;
- curthread->interrupt_on_stop = (gpointer)TRUE;
ALERTABLE_SOCKET_CALL (FD_ACCEPT_BIT, blocking, TRUE, newsock, accept, s, addr, addrlen);
- curthread->interrupt_on_stop = (gpointer)FALSE;
return newsock;
}
{
MonoInternalThread *curthread = mono_thread_internal_current ();
int ret = SOCKET_ERROR;
- curthread->interrupt_on_stop = (gpointer)TRUE;
ALERTABLE_SOCKET_CALL (FD_READ_BIT, blocking, TRUE, ret, recv, s, buf, len, flags);
- curthread->interrupt_on_stop = (gpointer)FALSE;
return ret;
}