Return-Path: Delivered-To: apmail-ws-axis-cvs-archive@www.apache.org Received: (qmail 92978 invoked from network); 3 Aug 2004 04:19:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Aug 2004 04:19:00 -0000 Received: (qmail 4549 invoked by uid 500); 3 Aug 2004 04:18:59 -0000 Delivered-To: apmail-ws-axis-cvs-archive@ws.apache.org Received: (qmail 4520 invoked by uid 500); 3 Aug 2004 04:18:58 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 4505 invoked by uid 99); 3 Aug 2004 04:18:58 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Mon, 02 Aug 2004 21:18:58 -0700 Received: (qmail 92950 invoked by uid 1852); 3 Aug 2004 04:18:57 -0000 Date: 3 Aug 2004 04:18:57 -0000 Message-ID: <20040803041857.92949.qmail@minotaur.apache.org> From: samisa@apache.org To: ws-axis-cvs@apache.org Subject: cvs commit: ws-axis/c/tests/client/threadSafe Client.cpp X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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;