X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fmemslap.c;h=7aa69eadf543f7b039269e89c038857a2b2a578f;hb=272ffde5fd710e85607c0033ad80792d415f26b7;hp=4a4f9a2eb9def19ddacb6c27afdc900313256f09;hpb=336426fb1ab6a3fe87ec7f04c4ed219b16cab814;p=awesomized%2Flibmemcached diff --git a/clients/memslap.c b/clients/memslap.c index 4a4f9a2e..7aa69ead 100644 --- a/clients/memslap.c +++ b/clients/memslap.c @@ -206,14 +206,7 @@ void scheduler(memcached_server_st *servers, conclusions_st *conclusion) */ pthread_mutex_lock(&counter_mutex); while (thread_counter) - { - struct timespec abstime; - - memset(&abstime, 0, sizeof(struct timespec)); - abstime.tv_sec= 10; - - pthread_cond_timedwait(&count_threshhold, &counter_mutex, &abstime); - } + pthread_cond_wait(&count_threshhold, &counter_mutex); pthread_mutex_unlock(&counter_mutex); gettimeofday(&end_time, NULL);