6 #include "linuxrwlocks.h"
11 static void a(void *obj)
14 for(i = 0; i < 2; i++) {
21 store_32(&shareddata,(unsigned int)i);
22 write_unlock(&mylock);
27 int user_main(int argc, char **argv)
30 atomic_init(&mylock.lock, RW_LOCK_BIAS);
32 thrd_create(&t1, (thrd_start_t)&a, NULL);
33 thrd_create(&t2, (thrd_start_t)&a, NULL);