From 235ad1aeb5c18b116b7c43a5d6eb96951d0d9c74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Thu, 5 Oct 2006 15:13:38 +0000 Subject: [PATCH] Removed debugging printouts and inappropriate assertions. --- org.glite.lb.client/examples/user_jobs_threaded.c | 10 ++++------ org.glite.lb.client/src/connection.c | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/org.glite.lb.client/examples/user_jobs_threaded.c b/org.glite.lb.client/examples/user_jobs_threaded.c index 65b2841..ccb6d3f 100644 --- a/org.glite.lb.client/examples/user_jobs_threaded.c +++ b/org.glite.lb.client/examples/user_jobs_threaded.c @@ -102,18 +102,16 @@ err: edg_wll_FreeContext(ctx); - printf("Thread %d exitting\n",(int)pthread_self()); +// printf("Thread %d exitting\n",(int)pthread_self()); pthread_exit(NULL); - printf("Thread %d out !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n",(int)pthread_self()); -// return 0; } int main(int argc,char **argv) { - #define NUM_THREADS 10 + #define NUM_THREADS 60 thread_code_args arguments = { NULL , 0 , NULL }; int i,rc,status; @@ -161,9 +159,9 @@ int main(int argc,char **argv) pthread_attr_destroy(&attr); for (i=0;iconnections->connOpened); - assert(cIndex < ctx->connections->connOpened); +// assert(cIndex < ctx->connections->connOpened); // Assertion no longer valid. "Holes" in the pool are permitted. edg_wll_gss_close(&ctx->connections->connPool[cIndex].gss, &ctx->p_tmp_timeout); if (ctx->connections->connPool[cIndex].gsiCred) @@ -423,7 +423,7 @@ int edg_wll_http_send_recv( assert(connToUse >= 0); gettimeofday(&ctx->connections->connPool[connToUse].lastUsed, NULL); - sleep(3); //Just for testing +// sleep(3); //Just for testing edg_wll_connectionUnlock(ctx, connToUse); return 0; -- 1.8.2.3