annotate DEPENDENCIES/generic/include/boost/thread/detail/platform.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // Copyright 2006 Roland Schwarz.
Chris@16 2 // (C) Copyright 2007 Anthony Williams
Chris@16 3 // Distributed under the Boost Software License, Version 1.0. (See
Chris@16 4 // accompanying file LICENSE_1_0.txt or copy at
Chris@16 5 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 6 //
Chris@16 7 // This work is a reimplementation along the design and ideas
Chris@16 8 // of William E. Kempf.
Chris@16 9
Chris@16 10 #ifndef BOOST_THREAD_RS06040501_HPP
Chris@16 11 #define BOOST_THREAD_RS06040501_HPP
Chris@16 12
Chris@16 13 // fetch compiler and platform configuration
Chris@16 14 #include <boost/config.hpp>
Chris@16 15
Chris@16 16 // insist on threading support being available:
Chris@16 17 #include <boost/config/requires_threads.hpp>
Chris@16 18
Chris@16 19 // choose platform
Chris@16 20 #if defined(linux) || defined(__linux) || defined(__linux__)
Chris@16 21 # define BOOST_THREAD_LINUX
Chris@16 22 //# define BOOST_THREAD_WAIT_BUG boost::posix_time::microseconds(100000)
Chris@16 23 #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
Chris@16 24 # define BOOST_THREAD_BSD
Chris@16 25 #elif defined(sun) || defined(__sun)
Chris@16 26 # define BOOST_THREAD_SOLARIS
Chris@16 27 #elif defined(__sgi)
Chris@16 28 # define BOOST_THREAD_IRIX
Chris@16 29 #elif defined(__hpux)
Chris@16 30 # define BOOST_THREAD_HPUX
Chris@16 31 #elif defined(__CYGWIN__)
Chris@16 32 # define BOOST_THREAD_CYGWIN
Chris@16 33 #elif (defined(_WIN32) || defined(__WIN32__) || defined(WIN32)) && !defined(BOOST_DISABLE_WIN32)
Chris@16 34 # define BOOST_THREAD_WIN32
Chris@16 35 #elif defined(__BEOS__)
Chris@16 36 # define BOOST_THREAD_BEOS
Chris@16 37 #elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
Chris@16 38 # define BOOST_THREAD_MACOS
Chris@16 39 //# define BOOST_THREAD_WAIT_BUG boost::posix_time::microseconds(1000)
Chris@16 40 #elif defined(__IBMCPP__) || defined(_AIX)
Chris@16 41 # define BOOST_THREAD_AIX
Chris@16 42 #elif defined(__amigaos__)
Chris@16 43 # define BOOST_THREAD_AMIGAOS
Chris@16 44 #elif defined(__QNXNTO__)
Chris@16 45 # define BOOST_THREAD_QNXNTO
Chris@16 46 #elif defined(unix) || defined(__unix) || defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE)
Chris@16 47 # if defined(BOOST_HAS_PTHREADS) && !defined(BOOST_THREAD_POSIX)
Chris@16 48 # define BOOST_THREAD_POSIX
Chris@16 49 # endif
Chris@16 50 #endif
Chris@16 51
Chris@16 52 // For every supported platform add a new entry into the dispatch table below.
Chris@16 53 // BOOST_THREAD_POSIX is tested first, so on platforms where posix and native
Chris@16 54 // threading is available, the user may choose, by defining BOOST_THREAD_POSIX
Chris@16 55 // in her source. If a platform is known to support pthreads and no native
Chris@16 56 // port of boost_thread is available just specify "pthread" in the
Chris@16 57 // dispatcher table. If there is no entry for a platform but pthreads is
Chris@16 58 // available on the platform, pthread is choosen as default. If nothing is
Chris@16 59 // available the preprocessor will fail with a diagnostic message.
Chris@16 60
Chris@16 61 #if defined(BOOST_THREAD_POSIX)
Chris@16 62 # define BOOST_THREAD_PLATFORM_PTHREAD
Chris@16 63 #else
Chris@16 64 # if defined(BOOST_THREAD_WIN32)
Chris@16 65 # define BOOST_THREAD_PLATFORM_WIN32
Chris@16 66 # elif defined(BOOST_HAS_PTHREADS)
Chris@16 67 # define BOOST_THREAD_PLATFORM_PTHREAD
Chris@16 68 # else
Chris@16 69 # error "Sorry, no boost threads are available for this platform."
Chris@16 70 # endif
Chris@16 71 #endif
Chris@16 72
Chris@16 73 #endif // BOOST_THREAD_RS06040501_HPP