X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fmemslap.c;h=7aa69eadf543f7b039269e89c038857a2b2a578f;hb=db4741c1f65edf1323e4aa0879c4589244af1971;hp=ddb18f3e7f303b9a95081cf1c269677b3a8c087d;hpb=933e5a561b10c1450563f1421b83d72396b805d2;p=awesomized%2Flibmemcached diff --git a/clients/memslap.c b/clients/memslap.c index ddb18f3e..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= 1; - - pthread_cond_timedwait(&count_threshhold, &counter_mutex, &abstime); - } + pthread_cond_wait(&count_threshhold, &counter_mutex); pthread_mutex_unlock(&counter_mutex); gettimeofday(&end_time, NULL); @@ -292,6 +285,7 @@ void options_parse(int argc, char *argv[]) break; case OPT_SLAP_CONCURRENCY: opt_concurrency= strtol(optarg, (char **)NULL, 10); + break; case OPT_SLAP_EXECUTE_NUMBER: opt_execute_number= strtol(optarg, (char **)NULL, 10); break;