ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/tests/client/threadSafe Client.cpp
Date Tue, 03 Aug 2004 04:18:57 GMT
samisa      2004/08/02 21:18:57

  Modified:    c/tests/client/threadSafe Client.cpp
  Log:
  Updates for thread safety
  
  Revision  Changes    Path
  1.7       +6 -3      ws-axis/c/tests/client/threadSafe/Client.cpp
  
  Index: Client.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/threadSafe/Client.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Client.cpp	3 Aug 2004 02:14:19 -0000	1.6
  +++ Client.cpp	3 Aug 2004 04:18:57 -0000	1.7
  @@ -38,6 +38,7 @@
   int NUM_THREADS = MACRO_NUM_THREADS;
   
   
  +extern "C" STORAGE_CLASS_INFO void initializeLibrary(void);
   const char *server = "localhost";
   const char *port = "8080";
   char endpoint[256];
  @@ -198,14 +199,14 @@
       }
       catch(exception& e)
       {
  -        printf("Unknown exception has occured\n");
  +        printf("Unknown exception has occured: %s\n", e.what());
       }
       catch(...)
       {
           printf("Unknown exception has occured\n");
       }
       
  -    delete ws;
  +    //delete ws;
       return 0;
   }
   
  @@ -233,7 +234,9 @@
   	sprintf(endpoint, "http://%s:%s/axis/services/echo", server, port);
   	ws = new InteropTestPortType(endpoint);
       }*/
  -
  +    sprintf(endpoint, "http://%s:%s/axis/services/echo", server, port);
  +    ws = new InteropTestPortType(endpoint); //Samisa: this is an ugly hack to init the
LibWWW lib
  +    ws = NULL; 
       pthread_t thread[NUM_THREADS];
       pthread_attr_t attr;
       int rc, t, status = 0;
  
  
  

Mime
View raw message