when we're done with it. This shouldn't be necessary, but not
releasing the lock is a corner case that we don't necessarily want the
students to have to handle.
printf ("Test complete.\n");
+ lock_release (&test.output_lock);
free (output);
free (threads);
}
printf ("Test complete.\n");
+ lock_release (&test.output_lock);
free (output);
free (threads);
}
printf ("Test complete.\n");
+ lock_release (&test.output_lock);
free (output);
free (threads);
}
printf ("Test complete.\n");
+ lock_release (&test.output_lock);
free (output);
free (threads);
}