Skip to content

Commit

Permalink
Add going multithreaded to lock-digest test
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Nov 30, 2023
1 parent 78a8484 commit 3f8c5d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/regression/46-apron2/58-lock-digest.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@ void *t1(void *arg) {
pthread_mutex_lock(&a);
h = 11; g = 12;
pthread_mutex_unlock(&a);
return NULL;
}

void *t0(void *arg) {
return NULL;
}

int main() {
pthread_t x;
pthread_create(&x, NULL, t0, NULL); // go multithreaded

pthread_mutex_lock(&a);
h = 9;
g = 10;
Expand Down

0 comments on commit 3f8c5d3

Please sign in to comment.