static void b(void *obj) {
lock->write(2);
+ int r1 = lock->read();
}
static void c(void *obj) {
thrd_create(&t1, (thrd_start_t)&a, NULL);
thrd_create(&t2, (thrd_start_t)&b, NULL);
- thrd_create(&t3, (thrd_start_t)&c, NULL);
+ //thrd_create(&t3, (thrd_start_t)&c, NULL);
thrd_join(t1);
thrd_join(t2);
- thrd_join(t3);
+ //thrd_join(t3);
return 0;
}