Update of /cvsroot/squeak/squeak/platforms/win32/plugins/SocketPlugin
In directory sc8-pr-cvs1:/tmp/cvs-serv7510
Modified Files:
sqWin32NewNet.c
Log Message:
fixed semaphore signaling
Index: sqWin32NewNet.c
===================================================================
RCS file: /cvsroot/squeak/squeak/platforms/win32/plugins/SocketPlugin/sqWin32NewNet.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** sqWin32NewNet.c 2 Nov 2003 19:52:39 -0000 1.7
--- sqWin32NewNet.c 21 Nov 2003 17:19:49 -0000 1.8
***************
*** 523,527 ****
UNLOCKSOCKET(pss->mutex);
/* Socket state changed so signal */
! signalSemaphoreWithIndex(pss->semaphoreIndex);
} else {
if(n != SOCKET_ERROR) {
--- 523,527 ----
UNLOCKSOCKET(pss->mutex);
/* Socket state changed so signal */
! SIGNAL(pss->semaphoreIndex);
} else {
if(n != SOCKET_ERROR) {
***************
*** 603,607 ****
UNLOCKSOCKET(pss->mutex);
/* Socket state changed so signal */
! signalSemaphoreWithIndex(pss->semaphoreIndex);
} else {
if(n != SOCKET_ERROR) {
--- 603,607 ----
UNLOCKSOCKET(pss->mutex);
/* Socket state changed so signal */
! SIGNAL(pss->semaphoreIndex);
} else {
if(n != SOCKET_ERROR) {
***************
*** 1806,1810 ****
(strncmp(hostName, lastName, len) == 0)) {
/* same as last, no point in looking it up */
! signalSemaphoreWithIndex(resolverSemaphoreIndex);
return;
}
--- 1806,1810 ----
(strncmp(hostName, lastName, len) == 0)) {
/* same as last, no point in looking it up */
! SIGNAL(resolverSemaphoreIndex);
return;
}
***************
*** 1865,1869 ****
lastError = WSAGetLastError();
asyncLookupHandle = 0;
! synchronizedSignalSemaphoreWithIndex(resolverSemaphoreIndex);
ExitThread(0);
return 1;
--- 1865,1869 ----
lastError = WSAGetLastError();
asyncLookupHandle = 0;
! SIGNAL(resolverSemaphoreIndex);
ExitThread(0);
return 1;
***************
*** 1887,1891 ****
lastError = WSAGetLastError();
asyncLookupHandle = 0;
! synchronizedSignalSemaphoreWithIndex(resolverSemaphoreIndex);
ExitThread(0);
return 1;
--- 1887,1891 ----
lastError = WSAGetLastError();
asyncLookupHandle = 0;
! SIGNAL(resolverSemaphoreIndex);
ExitThread(0);
return 1;
|