# Check whether posix thread barriers are available:
+ CHECK_CXX_SOURCE_COMPILES(
+ "
+ #include <pthread.h>
+ int main()
+ {
+ pthread_barrier_t pb;
+ pthread_barrier_init (&pb, 0, 1);
+ pthread_barrier_wait (&pb);
+ pthread_barrier_destroy (&pb);
+ return 0;
+ }
+ "
+ DEAL_II_HAVE_MT_POSIX_BARRIERS)
+
+ IF(NOT DEAL_II_HAVE_MT_POSIX_BARRIERS)
+ SET(DEAL_II_USE_MT_POSIX_NO_BARRIERS TRUE)
+ ENDIF()
+
ENDIF()
* Barriers will then not work in the library, but the other threading
* functionality is available.
*/
-#cmakedefine DEAL_II_USE_MT_POSIX_NO_BARRIERS
+#cmakedefine DEAL_II_USE_MT_POSIX_NO_BARRIERS 1
/**
* Depending on the use of threads, we will have to make some variables
/* Defined if a Metis installation was found and is going to be used */
#cmakedefine DEAL_II_USE_METIS
-/* Defined if POSIX is supported but not the newer POSIX barrier functions.
- Barriers will then not work in the library, but the other threading
- functionality is available. */
-#cmakedefine DEAL_II_USE_MT_POSIX_NO_BARRIERS
-
/* Defined if a MUMPS installation was found and is going to be used */
#cmakedefine DEAL_II_USE_MUMPS
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