ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r391235 - in /webservices/axis2/trunk/c: include/platforms/unix/axis2_unix.h include/platforms/windows/axis2_windows.h samples/client/echo_non_blocking/echo_client.c
Date Tue, 04 Apr 2006 07:12:38 GMT
Author: samisa
Date: Tue Apr  4 00:12:36 2006
New Revision: 391235

URL: http://svn.apache.org/viewcvs?rev=391235&view=rev
Log:
Added usleep to the platform

Modified:
    webservices/axis2/trunk/c/include/platforms/unix/axis2_unix.h
    webservices/axis2/trunk/c/include/platforms/windows/axis2_windows.h
    webservices/axis2/trunk/c/samples/client/echo_non_blocking/echo_client.c

Modified: webservices/axis2/trunk/c/include/platforms/unix/axis2_unix.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/platforms/unix/axis2_unix.h?rev=391235&r1=391234&r2=391235&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/platforms/unix/axis2_unix.h (original)
+++ webservices/axis2/trunk/c/include/platforms/unix/axis2_unix.h Tue Apr  4 00:12:36 2006
@@ -129,6 +129,7 @@
 #define AXIS2_PLATFORM_SLEEP(x) sleep(0);
 /** sleep function abstraction */
 #define AXIS2_SLEEP sleep 
+#define AXIS2_USLEEP usleep 
 /**
  * Get the last error code from the system.
  * Please ensure that this is a thread safe implementation

Modified: webservices/axis2/trunk/c/include/platforms/windows/axis2_windows.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/platforms/windows/axis2_windows.h?rev=391235&r1=391234&r2=391235&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/platforms/windows/axis2_windows.h (original)
+++ webservices/axis2/trunk/c/include/platforms/windows/axis2_windows.h Tue Apr  4 00:12:36
2006
@@ -113,6 +113,7 @@
 #define AXIS2_PLATFORM_SLEEP(x) Sleep(0);
 
 #define AXIS2_SLEEP Sleep
+#define AXIS2_USLEEP Sleep
 /**
  * Get the last error code from the system.
  * Please ensure that this is a thread safe implementation

Modified: webservices/axis2/trunk/c/samples/client/echo_non_blocking/echo_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/samples/client/echo_non_blocking/echo_client.c?rev=391235&r1=391234&r2=391235&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/echo_non_blocking/echo_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/echo_non_blocking/echo_client.c Tue Apr  4 00:12:36
2006
@@ -149,14 +149,17 @@
     printf("\n");
     while (!AXIS2_CALLBACK_GET_COMPLETE(callback, &env))
     {
-        printf("sleep(2) till callback complete\n");
         if (count++ > 10)
             break;
-        AXIS2_SLEEP(2);            
-        
+        AXIS2_USLEEP(200);            
     }
 
-    soap_envelope = AXIS2_CALLBACK_GET_ENVELOPE(callback, &env);
+    do
+    {
+        soap_envelope = AXIS2_CALLBACK_GET_ENVELOPE(callback, &env);
+        AXIS2_USLEEP(200);            
+    } while (!soap_envelope);
+    
     if (soap_envelope)
         ret_node = AXIS2_SOAP_ENVELOPE_GET_BASE_NODE(soap_envelope, &env);
                                                         



Mime
View raw message