]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Check for POSIX thread condition variables.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 10 Jan 2003 16:29:35 +0000 (16:29 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 10 Jan 2003 16:29:35 +0000 (16:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@6909 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 1d71d3387e1997c417fe2db77b7de7e26e61935b..f367a98c82e10e2060b01a5dc3664df6b76f80b9 100644 (file)
@@ -1022,6 +1022,29 @@ AC_DEFUN(DEAL_II_CHECK_POSIX_THREAD_FUNCTIONS, dnl
        AC_MSG_ERROR(not found)
    ])
 
+  AC_MSG_CHECKING(for posix thread condition variable functions)
+  AC_LANG(C++)
+  AC_TRY_COMPILE(
+   [
+#      include <pthread.h>
+   ],
+   [
+       pthread_cond_t   pc;
+       pthread_cond_init (&pc, 0);
+       pthread_cond_signal (&pc);
+       pthread_cond_broadcast (&pc);
+
+        pthread_mutex_t pm;
+        pthread_cond_wait (&pc, &pm);
+       pthread_cond_destroy (&pc);
+   ],
+   [
+       AC_MSG_RESULT(ok)
+   ],
+   [
+       AC_MSG_ERROR(not found)
+   ])
+
   AC_MSG_CHECKING(for posix thread barrier functions)
   AC_LANG(C++)
   AC_TRY_COMPILE(

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.