count[1] = URCU_TLS(nr_successful_enqueues);
printf_verbose("enqueuer thread_end, thread id : %lx, tid %lu, "
"enqueues %llu successful_enqueues %llu\n",
- pthread_self(),
+ (unsigned long) pthread_self(),
(unsigned long) gettid(),
URCU_TLS(nr_enqueues), URCU_TLS(nr_successful_enqueues));
return ((void*)1);
static void *thr_dequeuer(void *_count)
{
unsigned long long *count = _count;
+ unsigned int counter = 0;
printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n",
"dequeuer", (unsigned long) pthread_self(),
assert(test_pop || test_pop_all);
for (;;) {
- unsigned int counter = 0;
-
if (test_pop && test_pop_all) {
/* both pop and pop all */
if (counter & 1)
printf_verbose("dequeuer thread_end, thread id : %lx, tid %lu, "
"dequeues %llu, successful_dequeues %llu\n",
- pthread_self(),
+ (unsigned long) pthread_self(),
(unsigned long) gettid(),
URCU_TLS(nr_dequeues), URCU_TLS(nr_successful_dequeues));
count[0] = URCU_TLS(nr_dequeues);