Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20024
Modified Files:
xrpc_client.mx xrpc_server.mx
Log Message:
Use MT_sleep_ms as a portable way of specifying a sleep. We now get 1
millisecond instead of 1 microsecond, but that is still better than 1 second.
Index: xrpc_client.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/xrpc_client.mx,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- xrpc_client.mx 15 May 2007 22:38:34 -0000 1.35
+++ xrpc_client.mx 24 May 2007 13:22:14 -0000 1.36
@@ -642,7 +642,7 @@
ret = connect(sock, (struct sockaddr *) &sockaddr, sizeof(sockaddr));
for (i = NR_RETRIES; i > 0 && ret < 0; i--) {
- usleep(1);
+ MT_sleep_ms(1);
ret = connect(sock, (struct sockaddr *) &sockaddr, sizeof(sockaddr));
}
Index: xrpc_server.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/xrpc_server.mx,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- xrpc_server.mx 9 May 2007 08:40:07 -0000 1.45
+++ xrpc_server.mx 24 May 2007 13:22:14 -0000 1.46
@@ -145,7 +145,6 @@
#ifndef __MINGW32__
#pragma comment(lib, "ws2_32")
#endif
- #define sleep(s) Sleep(1000*(s))
#else /* UNIX specific */
#include <sys/select.h>
#include <sys/types.h> /* used by socket */
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins