Initialize the ticket lock

This commit is contained in:
Nils O. Selåsdal
2014-09-11 21:40:22 +02:00
parent fbbd1344ab
commit 6689fa9969
+3 -1
View File
@@ -31,7 +31,9 @@ static void *update_thread(void *arg)
START_TEST(test_ticket_lock1)
struct ThreadArg threads[NR_THREADS];
int i;
printf("TICKET SUITE\n");
int lrc;
lrc = uc_ticket_lock_init(&lock);
ck_assert_int_eq(lrc, 0);
for (i = 0; i < NR_THREADS; i++) {
int rc;