From 6bf117656574521545694a1a4e5169755077631e Mon Sep 17 00:00:00 2001 From: fcolin Date: Wed, 19 Apr 2006 08:28:14 +0000 Subject: correction de probleme potentiel en multithread ( Ada rejeu ) ajout d'un warning en cas de client bloquant si la varaiable d'env IVY_DEBUG_SEND est positionne --- src/ivyperf.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/ivyperf.c') diff --git a/src/ivyperf.c b/src/ivyperf.c index 11e9522..999fb69 100755 --- a/src/ivyperf.c +++ b/src/ivyperf.c @@ -76,9 +76,10 @@ void TimerCall(TimerId id, void *user_data, unsigned long delta) int main(int argc, char *argv[]) { - + long time=200; /* Mainloop management */ + if ( argc > 1 ) time = atol( argv[1] ); IvyInit ("IvyPerf", "IvyPerf ready", NULL,NULL,NULL,NULL); @@ -87,9 +88,9 @@ int main(int argc, char *argv[]) IvyStart (0); - TimerRepeatAfter (TIMER_LOOP, 200, TimerCall, (void*)1); + TimerRepeatAfter (TIMER_LOOP, time, TimerCall, (void*)1); - IvyMainLoop (0); + IvyMainLoop (0,0); return 0; } -- cgit v1.1