From 5304897a03ee218b5b36d2c5e7f83d970c4b1b46 Mon Sep 17 00:00:00 2001 From: bje Date: Sun, 4 Oct 1998 05:35:58 +0000 Subject: 1998-10-04 Ben Elliston * tests/mutex1.c: New basic test for mutex functions (it passes). --- ChangeLog | 2 ++ tests/mutex1.c | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/mutex1.c diff --git a/ChangeLog b/ChangeLog index 2f041e3..4000891 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 1998-10-04 Ben Elliston + * tests/mutex1.c: New basic test for mutex functions (it passes). + * configure.in: Test for __stdcall, not _stdcall. Typo. * configure: Regenerate. diff --git a/tests/mutex1.c b/tests/mutex1.c new file mode 100644 index 0000000..087483d --- /dev/null +++ b/tests/mutex1.c @@ -0,0 +1,17 @@ +/* + * mutex1.c + * + * Create a simple mutex object, lock it, and then unlock it again. + * This is the simplest test of the pthread mutex family that we can do. + */ + +#include + +pthread_mutex_t mutex1; + +main() +{ + pthread_mutex_init(&mutex1, NULL); + pthread_mutex_lock(&mutex1); + pthread_mutex_unlock(&mutex1); +} -- cgit v1.2.3