From e7a772589fde372895d33a2c480302775f2d62c3 Mon Sep 17 00:00:00 2001 From: bje Date: Sun, 4 Oct 1998 05:56:26 +0000 Subject: 1998-10-04 Ben Elliston * tests/mutex2.c: Test pthread_mutex_trylock(). Passes. * tests/mutex1.c (main): Eliminate warning. --- tests/mutex2.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/mutex2.c (limited to 'tests/mutex2.c') diff --git a/tests/mutex2.c b/tests/mutex2.c new file mode 100644 index 0000000..224b7ea --- /dev/null +++ b/tests/mutex2.c @@ -0,0 +1,12 @@ +#include + +pthread_mutex_t mutex1; + +main() +{ + pthread_mutex_init(&mutex1, NULL); + pthread_mutex_trylock(&mutex1); + pthread_mutex_unlock(&mutex1); + + return 0; +} -- cgit v1.2.3