diff options
Diffstat (limited to 'tests/mutex2.c')
-rw-r--r-- | tests/mutex2.c | 12 |
1 files changed, 12 insertions, 0 deletions
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.h> + +pthread_mutex_t mutex1; + +main() +{ + pthread_mutex_init(&mutex1, NULL); + pthread_mutex_trylock(&mutex1); + pthread_mutex_unlock(&mutex1); + + return 0; +} |