static unsigned long init_hash_size = DEFAULT_HASH_SIZE;
static unsigned long init_populate;
static unsigned long rand_pool = DEFAULT_RAND_POOL;
-static int add_only, add_unique;
+static int add_only, add_unique, no_mutex;
static inline void loop_sleep(unsigned long l)
{
{
int ret;
+ if (no_mutex)
+ return;
ret = pthread_mutex_lock(&rcu_copy_mutex);
if (ret) {
perror("Error in pthread mutex lock");
{
int ret;
+ if (no_mutex)
+ return;
ret = pthread_mutex_unlock(&rcu_copy_mutex);
if (ret) {
perror("Error in pthread mutex unlock");
printf(" [-u] Uniquify add.");
printf(" [-i] Add only (no removal).");
printf(" [-k nr_nodes] Number of nodes to insert initially.");
+ printf(" [-l] No mutex.");
printf("\n");
}
case 'k':
init_populate = atol(argv[++i]);
break;
+ case 'l':
+ no_mutex = 1;
+ break;
}
}