+/*
+ * test_urcu.c
+ *
+ * Userspace RCU library - test program
+ *
+ * Copyright February 2009 - Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
+ *
+ * Distributed under GPLv2
+ */
+
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
struct test_array *local_ptr;
printf("thread %s, thread id : %lu, pid %lu\n",
- "reader", pthread_self(), getpid());
+ "reader", pthread_self(), (unsigned long)getpid());
sleep(2);
urcu_register_thread();
struct test_array *new, *old;
printf("thread %s, thread id : %lu, pid %lu\n",
- "writer", pthread_self(), getpid());
+ "writer", pthread_self(), (unsigned long)getpid());
sleep(2);
for (i = 0; i < 100000; i++) {