Skip to content
Snippets Groups Projects
Commit 7513fa8e authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Add test to end of rwlock

parent 869e7893
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -79,6 +79,14 @@ int main()
continue;
}
rwlock_wrlock_thread(&lock);
printf("Grabbing wrlock to clean up\n");
if (rwlock_trywrlock(&lock)) {
rwlock_unlock(&lock);
}
else {
printf("Unable to grab lock after wrlock thread complete!\n");
}
printf("Destroying rwlock\n");
if (!rwlock_destroy(&lock)) {
printf("Unable to destroy rwlock\n");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment