]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Remove obsolete posix thread barrier detection 10324/head
authorMatthias Maier <tamiko@43-1.org>
Sat, 23 May 2020 05:04:58 +0000 (00:04 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sat, 23 May 2020 05:04:58 +0000 (00:04 -0500)
cmake/configure/configure_1_threads.cmake

index 85d0b3da9b845c24e7504c30268becdb1ba76b7e..520f7ceaee9f914f598d65a2d048bb0ee2de90a6 100644 (file)
@@ -90,51 +90,6 @@ MACRO(SETUP_THREADING)
   ENDIF()
 
   ADD_FLAGS(THREADS_LINKER_FLAGS "${CMAKE_THREAD_LIBS_INIT}")
-
-  #
-  # Set up some posix thread specific configuration toggles:
-  #
-  IF(NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
-
-    IF(NOT CMAKE_USE_PTHREADS_INIT)
-      MESSAGE(FATAL_ERROR
-        "\nInternal configuration error: Not on Windows but posix thread support unavailable\n\n"
-        )
-    ENDIF()
-
-    SET(DEAL_II_USE_MT_POSIX TRUE)
-
-    #
-    # Check whether posix thread barriers are available:
-    #
-    ADD_FLAGS(CMAKE_REQUIRED_FLAGS "${CMAKE_THREAD_LIBS_INIT}")
-    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)
-    RESET_CMAKE_REQUIRED()
-    IF(NOT DEAL_II_HAVE_MT_POSIX_BARRIERS)
-      SET(DEAL_II_USE_MT_POSIX_NO_BARRIERS TRUE)
-    ENDIF()
-
-  ELSE()
-
-    #
-    # Poor Windows:
-    #
-    SET(DEAL_II_USE_MT_POSIX FALSE)
-    SET(DEAL_II_USE_MT_POSIX_NO_BARRIERS TRUE)
-  ENDIF()
-
 ENDMACRO()
 
 

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.