Ticket #7336: 7336.patch
File 7336.patch, 4.3 KB (added by , 10 years ago) |
---|
-
boost/thread/detail/config.hpp
43 43 #endif 44 44 #endif 45 45 46 // Uses Boost.System by default if not stated the opposite defining BOOST_THREAD_DONT_USE_SYSTEM 47 #if ! defined BOOST_THREAD_DONT_USE_SYSTEM && ! defined BOOST_THREAD_USES_SYSTEM 48 #define BOOST_THREAD_USES_SYSTEM 49 #endif 50 51 // Uses Boost.Chrono by default if not stated the opposite defining BOOST_THREAD_DONT_USE_CHRONO or BOOST_THREAD_DONT_USE_SYSTEM 52 #if ! defined BOOST_THREAD_DONT_USE_CHRONO && ! defined BOOST_THREAD_DONT_USE_SYSTEM && ! defined BOOST_THREAD_USES_CHRONO 46 // Uses Boost.Chrono by default if not stated the opposite defining BOOST_THREAD_DONT_USE_CHRONO 47 #if ! defined BOOST_THREAD_DONT_USE_CHRONO && ! defined BOOST_THREAD_USES_CHRONO 53 48 #define BOOST_THREAD_USES_CHRONO 54 49 #endif 55 50 -
libs/thread/doc/overview.qbk
42 42 43 43 The source code compiled when building the library defines a macros BOOST_THREAD_SOURCE that is used to import or export it. The user must not define this macro in any case. 44 44 45 Boost.Thread depends on some non header-only libraries. 46 47 * Boost.System: This dependency is mandatory and you will need to link with the library. 48 49 * Boost.Chrono: This dependency is optional (see below how to configure) and you will need to link with the library if you use some of the time related interfaces. 50 51 * Boost.DateTime: This dependency is mandatory, but even if Boost.DateTime is a non header-only library Boost.Thread uses only parts that are header-only, so in principle you should not need to link with the library. 52 53 It seems that there are some IDE (as e.g. Visual Studio) that deduce the libraries that a program needs to link to inspecting the sources. Such IDE could force to link to Boost.DateTime and/or Boost.Chrono. 54 55 As the single mandatory dependency is to Boost.System, the following 56 57 bjam toolset=msvc-11.0 --build-type=complete --with-thread 58 59 will install only boost_thread and boost_system. 60 61 Users of such IDE should force the Boost.Chrono and Boost.DateTime build using 62 63 bjam toolset=msvc-11.0 --build-type=complete --with-thread --with-chrono --with-date_time 64 65 45 66 The following section describes all the macros used to configure Boost.Thread. 46 67 47 68 [include configuration.qbk] -
libs/thread/doc/configuration.qbk
8 8 9 9 [section:configuration Configuration] 10 10 11 [section:system Boost.System]12 11 13 Boost.Thread uses by default Boost.System to define the exceptions. For backward compatibility and also for compilers that don't work well with Boost.System the user can define `BOOST_THREAD_DONT_USE_SYSTEM `.14 15 `BOOST_THREAD_USES_SYSTEM` is defined when Boost.Thread uses Boost.Move.16 17 [endsect]18 19 12 [section:chrono Boost.Chrono] 20 13 21 Boost.Thread uses by default Boost.Chrono for the time related functions. For backward compatibility and also for compilers that don't work well with Boost.Chrono the user can define `BOOST_THREAD_DONT_USE_CHRONO`. If `BOOST_THREAD_DONT_USE_SYSTEM` is defined then `BOOST_THREAD_DONT_USE_CHRONO` is defined implicitly.14 Boost.Thread uses by default Boost.Chrono for the time related functions. For backward compatibility and also for compilers that don't work well with Boost.Chrono the user can define `BOOST_THREAD_DONT_USE_CHRONO`. 22 15 23 16 `BOOST_THREAD_USES_CHRONO` is defined when Boost.Thread uses Boost.Chrono. 24 17 18 25 19 [endsect] 26 20 27 21 [section:move Boost.Move] … … 29 23 Boost.Thread uses by default an internal move semantic implementation. Since version 3.0.0 you can use the move emulation emulation provided by Boost.Move. 30 24 31 25 When `BOOST_THREAD_VERSION==2` define `BOOST_THREAD_USES_MOVE ` if you want to use Boost.Move interface. 32 When `BOOST_THREAD_VERSION==3` define `BOOST_THREAD_DONT_USE_MOVE ` if you want to use boost::unique_future.26 When `BOOST_THREAD_VERSION==3` define `BOOST_THREAD_DONT_USE_MOVE ` if you don't want to use Boost.Move interface. 33 27 34 28 [endsect] 35 29