configuration.qbk 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  1. [/
  2. (C) Copyright 2012-2015 Vicente J. Botet Escriba.
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt).
  6. ]
  7. [section:configuration Configuration]
  8. [table Default Values for Configurable Features
  9. [[Feature] [Anti-Feature] [V2] [V3] [V4] [V5] ]
  10. [[USES_CHRONO] [DONT_USE_CHRONO] [YES/NO] [YES/NO] [YES/NO] [YES/NO] ]
  11. [[PROVIDES_INTERRUPTIONS] [DONT_PROVIDE_INTERRUPTIONS] [YES] [YES] [YES] [YES] ]
  12. [[THROW_IF_PRECONDITION_NOT_SATISFIED] [-] [NO] [NO] [NO] [NO] ]
  13. [[PROVIDES_PROMISE_LAZY] [DONT_PROVIDE_PROMISE_LAZY] [YES] [NO] [NO] [NO] ]
  14. [[PROVIDES_BASIC_THREAD_ID] [DONT_PROVIDE_BASIC_THREAD_ID] [NO] [YES] [YES] [YES] ]
  15. [[PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN] [DONT_PROVIDE_GENERIC_SHARED_MUTEX_ON_WIN] [NO] [YES] [YES] [YES] ]
  16. [[PROVIDES_SHARED_MUTEX_UPWARDS_CONVERSION] [DONT_PROVIDE_SHARED_MUTEX_UPWARDS_CONVERSION] [NO] [YES] [YES] [YES] ]
  17. [[PROVIDES_EXECUTORS] [-] [NO] [NO] [NO] [YES] ]
  18. [[PROVIDES_EXPLICIT_LOCK_CONVERSION] [DONT_PROVIDE_EXPLICIT_LOCK_CONVERSION] [NO] [YES] [YES] [YES] ]
  19. [[PROVIDES_FUTURE] [DONT_PROVIDE_FUTURE] [NO] [YES] [YES] [YES] ]
  20. [[PROVIDES_FUTURE_CTOR_ALLOCATORS] [DONT_PROVIDE_FUTURE_CTOR_ALLOCATORS] [NO] [YES] [YES] [YES] ]
  21. [[PROVIDES_THREAD_DESTRUCTOR_CALLS_TERMINATE_IF_JOINABLE] [DONT_PROVIDE_THREAD_DESTRUCTOR_CALLS_TERMINATE_IF_JOINABLE] [NO] [YES] [YES] [YES] ]
  22. [[PROVIDES_THREAD_MOVE_ASSIGN_CALLS_TERMINATE_IF_JOINABLE] [DONT_PROVIDE_THREAD_MOVE_ASSIGN_CALLS_TERMINATE_IF_JOINABLE] [NO] [YES] [YES] [YES] ]
  23. [[PROVIDES_ONCE_CXX11] [DONT_PROVIDE_ONCE_CXX11] [NO] [YES] [YES] [YES] ]
  24. [[USES_MOVE] [DONT_USE_MOVE] [NO] [YES] [YES] [YES] ]
  25. [[USES_DATETIME] [DONT_USE_DATETIME] [YES/NO] [YES/NO] [YES/NO] [YES/NO] ]
  26. [[PROVIDES_THREAD_EQ] [DONT_PROVIDE_THREAD_EQ] [YES] [YES] [NO] [NO] ]
  27. [[PROVIDES_CONDITION] [DONT_PROVIDE_CONDITION] [YES] [YES] [NO] [NO] ]
  28. [[PROVIDES_NESTED_LOCKS] [DONT_PROVIDE_NESTED_LOCKS] [YES] [YES] [NO] [NO] ]
  29. [[PROVIDES_SIGNATURE_PACKAGED_TASK] [DONT_PROVIDE_SIGNATURE_PACKAGED_TASK] [NO] [NO] [YES] [YES] ]
  30. [[PROVIDES_FUTURE_INVALID_AFTER_GET] [DONT_PROVIDE_FUTURE_INVALID_AFTER_GET] [NO] [NO] [YES] [YES] ]
  31. [/ [[PROVIDES_FUTURE_CONTINUATION] [DONT_PROVIDE_FUTURE_CONTINUATION] [NO] [NO] [YES] [YES] ] ]
  32. [[PROVIDES_VARIADIC_THREAD] [DONT_PROVIDE_VARIADIC_THREAD] [NO] [NO] [C++11] [C++11] ]
  33. ]
  34. [section:chrono Boost.Chrono]
  35. Boost.Thread uses by default Boost.Chrono for the time related functions and define `BOOST_THREAD_USES_CHRONO` if `BOOST_THREAD_DONT_USE_CHRONO` is not defined. The user should define `BOOST_THREAD_DONT_USE_CHRONO` for compilers that don't work well with Boost.Chrono.
  36. [warning When defined BOOST_THREAD_PLATFORM_WIN32 BOOST_THREAD_USES_CHRONO is defined independently of user settings.]
  37. [endsect]
  38. [section:move Boost.Move]
  39. 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.
  40. When `BOOST_THREAD_VERSION==2` define `BOOST_THREAD_USES_MOVE ` if you want to use Boost.Move interface.
  41. When `BOOST_THREAD_VERSION>=3` define `BOOST_THREAD_DONT_USE_MOVE ` if you don't want to use Boost.Move interface.
  42. [endsect]
  43. [section:date_time Boost.DateTime]
  44. The Boost.DateTime time related functions introduced in Boost 1.35.0, using the [link date_time Boost.Date_Time] library are deprecated. These include (but are not limited to):
  45. * __sleep__
  46. * __timed_join__
  47. * __cond_timed_wait__
  48. * __timed_lock_ref__
  49. When `BOOST_THREAD_VERSION<=3` && defined BOOST_THREAD_PLATFORM_PTHREAD define `BOOST_THREAD_DONT_USE_DATETIME` if you don't want to use Boost.DateTime related interfaces.
  50. When `BOOST_THREAD_VERSION>3` && defined BOOST_THREAD_PLATFORM_PTHREAD define `BOOST_THREAD_USES_DATETIME` if you want to use Boost.DateTime related interfaces.
  51. [warning When defined BOOST_THREAD_PLATFORM_WIN32 BOOST_THREAD_USES_DATETIME is defined independently of user settings.]
  52. [endsect]
  53. [section:move Boost.Atomic]
  54. Boost.Thread uses by default Boost.Atomic in POSIX platforms to implement call_once..
  55. Define `BOOST_THREAD_USES_ATOMIC ` if you want to use Boost.Atomic.
  56. Define `BOOST_THREAD_DONT_USE_ATOMIC ` if you don't want to use Boost.Atomic or if it is not supported in your platform.
  57. [endsect]
  58. [section:thread_eq `boost::thread::operator==` deprecated]
  59. The following operators are deprecated:
  60. * `boost::thread::operator==`
  61. * `boost::thread::operator!=`
  62. When `BOOST_THREAD_PROVIDES_THREAD_EQ` is defined Boost.Thread provides these deprecated feature.
  63. Use instead
  64. * `boost::thread::id::operator==`
  65. * `boost::thread::id::operator!=`
  66. [warning This is a breaking change respect to version 1.x.]
  67. When `BOOST_THREAD_VERSION>=4` define `BOOST_THREAD_PROVIDES_THREAD_EQ ` if you want this feature.
  68. When `BOOST_THREAD_VERSION<4` define `BOOST_THREAD_DONT_PROVIDE_THREAD_EQ ` if you don't want this feature.
  69. [endsect]
  70. [section:condition boost::condition deprecated]
  71. `boost::condition` is deprecated. When `BOOST_THREAD_PROVIDES_CONDITION` is defined Boost.Thread provides this deprecated feature.
  72. Use instead `boost::condition_variable_any`.
  73. [warning This is a breaking change respect to version 1.x.]
  74. When `BOOST_THREAD_VERSION>3` define `BOOST_THREAD_PROVIDES_CONDITION` if you want this feature.
  75. When `BOOST_THREAD_VERSION<=3` define `BOOST_THREAD_DONT_PROVIDE_CONDITION` if you don't want this feature.
  76. [endsect]
  77. [section:nested_lock Mutex nested lock types deprecated]
  78. The following nested typedefs are deprecated:
  79. * `boost::mutex::scoped_lock`,
  80. * `boost::mutex::scoped_try_lock`,
  81. * `boost::timed_mutex::scoped_lock`
  82. * `boost::timed_mutex::scoped_try_lock`
  83. * `boost::timed_mutex::timed_scoped_timed_lock`
  84. * `boost::recursive_mutex::scoped_lock`,
  85. * `boost::recursive_mutex::scoped_try_lock`,
  86. * `boost::recursive_timed_mutex::scoped_lock`
  87. * `boost::recursive_timed_mutex::scoped_try_lock`
  88. * `boost::recursive_timed_mutex::timed_scoped_timed_lock`
  89. When `BOOST_THREAD_PROVIDES_NESTED_LOCKS` is defined Boost.Thread provides these deprecated feature.
  90. Use instead
  91. * `boost::unique_lock<boost::mutex>`,
  92. * `boost::unique_lock<boost::mutex>` with the `try_to_lock_t` constructor,
  93. * `boost::unique_lock<boost::timed_mutex>`
  94. * `boost::unique_lock<boost::timed_mutex>` with the `try_to_lock_t` constructor
  95. * `boost::unique_lock<boost::timed_mutex>`
  96. * `boost::unique_lock<boost::recursive_mutex>`,
  97. * `boost::unique_lock<boost::recursive_mutex>` with the `try_to_lock_t` constructor,
  98. * `boost::unique_lock<boost::recursive_timed_mutex>`
  99. * `boost::unique_lock<boost::recursive_timed_mutex>` with the `try_to_lock_t` constructor
  100. * `boost::unique_lock<boost::recursive_timed_mutex>`
  101. [warning This is a breaking change respect to version 1.x.]
  102. When `BOOST_THREAD_VERSION>=4` define `BOOST_THREAD_PROVIDES_NESTED_LOCKS` if you want these features.
  103. When `BOOST_THREAD_VERSION<4` define `BOOST_THREAD_DONT_PROVIDE_NESTED_LOCKS` if you don't want thes features.
  104. [endsect]
  105. [section:id thread::id]
  106. Boost.Thread uses by default a thread::id on Posix based on the pthread type (BOOST_THREAD_PROVIDES_BASIC_THREAD_ID). For backward compatibility and also for compilers that don't work well with this modification the user can define `BOOST_THREAD_DONT_PROVIDE_BASIC_THREAD_ID`.
  107. Define `BOOST_THREAD_DONT_PROVIDE_BASIC_THREAD_ID ` if you don't want these features.
  108. [endsect]
  109. [section:shared_gen Shared Locking Generic]
  110. The shared mutex implementation on Windows platform provides currently less functionality than the generic one that is used for PTheads based platforms. In order to have access to these functions, the user needs to define `BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN` to use the generic implementation, that while could be less efficient, provides all the functions.
  111. When `BOOST_THREAD_VERSION==2` define `BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN ` if you want these features.
  112. When `BOOST_THREAD_VERSION>=3` define `BOOST_THREAD_DONT_PROVIDE_GENERIC_SHARED_MUTEX_ON_WIN ` if you don't want these features.
  113. [endsect]
  114. [section:shared_upwards Shared Locking Upwards Conversion]
  115. Boost.Threads includes in version 3 the Shared Locking Upwards Conversion as defined in [@http://home.roadrunner.com/~hinnant/bloomington/shared_mutex.html Shared Locking].
  116. These conversions need to be used carefully to avoid deadlock or livelock. The user need to define explicitly `BOOST_THREAD_PROVIDES_SHARED_MUTEX_UPWARDS_CONVERSIONS` to get these upwards conversions.
  117. When `BOOST_THREAD_VERSION==2` define `BOOST_THREAD_PROVIDES_SHARED_MUTEX_UPWARDS_CONVERSIONS ` if you want these features.
  118. When `BOOST_THREAD_VERSION>=3` define `BOOST_THREAD_DONT_PROVIDE_SHARED_MUTEX_UPWARDS_CONVERSION ` if you don't want these features.
  119. [endsect]
  120. [section:explicit_cnv Explicit Lock Conversion]
  121. In [@http://home.roadrunner.com/~hinnant/bloomington/shared_mutex.html Shared Locking] the lock conversions are explicit. As this explicit conversion breaks the lock interfaces, it is provided only if the `BOOST_THREAD_PROVIDES_EXPLICIT_LOCK_CONVERSION` is defined.
  122. When `BOOST_THREAD_VERSION==2` define `BOOST_THREAD_PROVIDES_EXPLICIT_LOCK_CONVERSION ` if you want these features.
  123. When `BOOST_THREAD_VERSION==3` define `BOOST_THREAD_DONT_PROVIDE_EXPLICIT_LOCK_CONVERSION ` if you don't want these features.
  124. [endsect]
  125. [section:future unique_future versus future]
  126. C++11 uses `std::future`. Versions of Boost.Thread previous to version 3.0.0 uses `boost:unique_future`.
  127. Since version 3.0.0 `boost::future` replaces `boost::unique_future` when `BOOST_THREAD_PROVIDES_FUTURE` is defined. The documentation doesn't contains anymore however `boost::unique_future`.
  128. When `BOOST_THREAD_VERSION==2` define `BOOST_THREAD_PROVIDES_FUTURE` if you want to use boost::future.
  129. When `BOOST_THREAD_VERSION>=3` define `BOOST_THREAD_DONT_PROVIDE_FUTURE` if you want to use boost::unique_future.
  130. [endsect]
  131. [section:lazy promise lazy initialization]
  132. C++11 promise initialize the associated state at construction time. Versions of Boost.Thread previous to version 3.0.0 initialize it lazily at any point in time in which this associated state is needed.
  133. Since version 3.0.0 this difference in behavior can be configured. When `BOOST_THREAD_PROVIDES_PROMISE_LAZY` is defined the backward compatible behavior is provided.
  134. When `BOOST_THREAD_VERSION==2` define `BOOST_THREAD_DONT_PROVIDE_PROMISE_LAZY ` if you want to use boost::future.
  135. When `BOOST_THREAD_VERSION>=3` define `BOOST_THREAD_PROVIDES_PROMISE_LAZY ` if you want to use boost::unique_future.
  136. [endsect]
  137. [section:alloc promise Allocator constructor]
  138. C++11 std::promise provides constructors with allocators.
  139. template <typename R>
  140. class promise
  141. {
  142. public:
  143. template <class Allocator>
  144. explicit promise(allocator_arg_t, Allocator a);
  145. // ...
  146. };
  147. template <class R, class Alloc> struct uses_allocator<promise<R>,Alloc>: true_type {};
  148. where
  149. struct allocator_arg_t { };
  150. constexpr allocator_arg_t allocator_arg = allocator_arg_t();
  151. template <class T, class Alloc> struct uses_allocator;
  152. Since version 3.0.0 Boost.Thread implements this constructor using the following interface
  153. namespace boost
  154. {
  155. typedef container::allocator_arg_t allocator_arg_t;
  156. constexpr allocator_arg_t allocator_arg = {};
  157. namespace container
  158. {
  159. template <class R, class Alloc>
  160. struct uses_allocator<promise<R>,Alloc>: true_type {};
  161. }
  162. template <class T, class Alloc>
  163. struct uses_allocator : public container::uses_allocator<T, Alloc> {};
  164. }
  165. which introduces a dependency on Boost.Container. This feature is provided only if `BOOST_THREAD_PROVIDES_FUTURE_CTOR_ALLOCATORS` is defined.
  166. When `BOOST_THREAD_VERSION==2` define `BOOST_THREAD_PROVIDES_FUTURE_CTOR_ALLOCATORS ` if you want these features.
  167. When `BOOST_THREAD_VERSION>=3` define `BOOST_THREAD_DONT_PROVIDE_FUTURE_CTOR_ALLOCATORS ` if you don't want these features.
  168. [endsect]
  169. [section:terminate Call to terminate if joinable]
  170. C++11 has a different semantic for the thread destructor and the move assignment. Instead of detaching the thread, calls to terminate() if the thread was joinable. When `BOOST_THREAD_PROVIDES_THREAD_DESTRUCTOR_CALLS_TERMINATE_IF_JOINABLE` and `BOOST_THREAD_PROVIDES_THREAD_MOVE_ASSIGN_CALLS_TERMINATE_IF_JOINABLE` is defined Boost.Thread provides the C++ semantic.
  171. When `BOOST_THREAD_VERSION==2` define `BOOST_THREAD_PROVIDES_THREAD_DESTRUCTOR_CALLS_TERMINATE_IF_JOINABLE ` if you want these features.
  172. When `BOOST_THREAD_VERSION>=3` define `BOOST_THREAD_DONT_PROVIDE_THREAD_DESTRUCTOR_CALLS_TERMINATE_IF_JOINABLE ` if you don't want these features.
  173. When `BOOST_THREAD_VERSION==2` define `BOOST_THREAD_PROVIDES_THREAD_MOVE_ASSIGN_CALLS_TERMINATE_IF_JOINABLE ` if you want these features.
  174. When `BOOST_THREAD_VERSION>=3` define `BOOST_THREAD_DONT_PROVIDE_THREAD_MOVE_ASSIGN_CALLS_TERMINATE_IF_JOINABLE ` if you don't want these features.
  175. [endsect]
  176. [section:once_flag once_flag]
  177. C++11 defines a default constructor for once_flag. When `BOOST_THREAD_PROVIDES_ONCE_CXX11 ` is defined Boost.Thread provides this C++ semantics. In this case, the previous aggregate syntax is not supported.
  178. boost::once_flag once = BOOST_ONCE_INIT;
  179. You should now just do
  180. boost::once_flag once;
  181. When `BOOST_THREAD_VERSION==2` define `BOOST_THREAD_PROVIDES_ONCE_CXX11` if you want these features.
  182. When `BOOST_THREAD_VERSION>=3` define `BOOST_THREAD_DONT_PROVIDE_ONCE_CXX11` if you don't want these features.
  183. [endsect]
  184. [section:deprecated Signature parameter for packaged_task]
  185. C++11 packaged task class has a Signature template parameter. When `BOOST_THREAD_PROVIDES_SIGNATURE_PACKAGED_TASK ` is defined Boost.Thread provides this C++ feature.
  186. [warning This is a breaking change respect to version 3.x.]
  187. When `BOOST_THREAD_VERSION<4` define `BOOST_THREAD_PROVIDES_SIGNATURE_PACKAGED_TASK` if you want this feature.
  188. When `BOOST_THREAD_VERSION>=4` define `BOOST_THREAD_DONT_PROVIDE_SIGNATURE_PACKAGED_TASK` if you don't want this feature.
  189. [endsect]
  190. [section:thread_const-var thread constructor with variadic rvalue parameters]
  191. C++11 thread constructor accep a variable number of rvalue argumentshas. When `BOOST_THREAD_PROVIDES_VARIADIC_THREAD ` is defined Boost.Thread provides this C++ feature if the following are not defined
  192. * BOOST_NO_SFINAE_EXPR
  193. * BOOST_NO_CXX11_VARIADIC_TEMPLATES
  194. * BOOST_NO_CXX11_DECLTYPE
  195. * BOOST_NO_CXX11_DECLTYPE_N3276
  196. * BOOST_NO_CXX11_RVALUE_REFERENCES
  197. * BOOST_NO_CXX11_TRAILING_RESULT_TYPES
  198. * BOOST_NO_CXX11_RVALUE_REFERENCES
  199. * BOOST_NO_CXX11_HDR_TUPLE
  200. When `BOOST_THREAD_VERSION>4` define `BOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD ` if you don't want this feature.
  201. [endsect]
  202. [section:get_invalid future<>::get() invalidates the future]
  203. C++11 future<>::get() invalidates the future once its value has been obtained. When `BOOST_THREAD_PROVIDES_FUTURE_INVALID_AFTER_GET ` is defined Boost.Thread provides this C++ feature.
  204. [warning This is a breaking change respect to version 3.x.]
  205. When `BOOST_THREAD_VERSION<4` define `BOOST_THREAD_PROVIDES_FUTURE_INVALID_AFTER_GET` if you want this feature.
  206. When `BOOST_THREAD_VERSION>=4` define `BOOST_THREAD_DONT_PROVIDE_FUTURE_INVALID_AFTER_GET` if you don't want this feature.
  207. [endsect]
  208. [section:intr Interruptions]
  209. Thread interruption, while useful, makes any interruption point less efficient than if the thread were not interruptible.
  210. When `BOOST_THREAD_PROVIDES_INTERRUPTIONS` is defined Boost.Thread provides interruptions.
  211. When `BOOST_THREAD_DONT_PROVIDE_INTERRUPTIONS` is defined Boost.Thread don't provide interruption.
  212. Boost.Thread defines BOOST_THREAD_PROVIDES_INTERRUPTIONS if neither BOOST_THREAD_PROVIDES_INTERRUPTIONS nor BOOST_THREAD_DONT_PROVIDE_INTERRUPTIONS are defined, so that there is no compatibility break.
  213. [endsect]
  214. [section:version Version]
  215. `BOOST_THREAD_VERSION` defines the Boost.Thread version.
  216. The default version is 2. In this case the following breaking or extending macros are defined if the opposite is not requested:
  217. * `BOOST_THREAD_PROVIDES_PROMISE_LAZY`
  218. The user can request the version 3 by defining `BOOST_THREAD_VERSION` to 3. In this case the following breaking or extending macros are defined if the opposite is not requested:
  219. * Breaking change `BOOST_THREAD_PROVIDES_EXPLICIT_LOCK_CONVERSION `
  220. * Conformity & Breaking change `BOOST_THREAD_PROVIDES_FUTURE`
  221. * Uniformity `BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN`
  222. * Extension `BOOST_THREAD_PROVIDES_SHARED_MUTEX_UPWARDS_CONVERSIONS`
  223. * Conformity `BOOST_THREAD_PROVIDES_FUTURE_CTOR_ALLOCATORS`
  224. * Conformity & Breaking change BOOST_THREAD_PROVIDES_THREAD_DESTRUCTOR_CALLS_TERMINATE_IF_JOINABLE
  225. * Conformity & Breaking change BOOST_THREAD_PROVIDES_THREAD_MOVE_ASSIGN_CALLS_TERMINATE_IF_JOINABLE
  226. * Conformity & Breaking change `BOOST_THREAD_PROVIDES_ONCE_CXX11`
  227. * Breaking change `BOOST_THREAD_DONT_PROVIDE_PROMISE_LAZY`
  228. [/The default value for `BOOST_THREAD_VERSION` will be changed to 3 since Boost 1.54.]
  229. The user can request the version 4 by defining `BOOST_THREAD_VERSION` to 4. In this case the following breaking or extending macros are defined if the opposite is not requested:
  230. * Conformity & Breaking change `BOOST_THREAD_PROVIDES_SIGNATURE_PACKAGED_TASK `
  231. * Conformity & Breaking change `BOOST_THREAD_PROVIDES_FUTURE_INVALID_AFTER_GET `
  232. * Conformity `BOOST_THREAD_PROVIDES_VARIADIC_THREAD`
  233. * Breaking change `BOOST_THREAD_DONT_PROVIDE_THREAD_EQ`
  234. * Breaking change `BOOST_THREAD_DONT_USE_DATETIME`
  235. [/The default value for `BOOST_THREAD_VERSION` will be changed to 4 since Boost 1.58.]
  236. [endsect]
  237. [endsect]
  238. [section:limitations Limitations]
  239. Some compilers don't work correctly with some of the added features.
  240. [section:sun SunPro]
  241. If __SUNPRO_CC < 0x5100 the library defines
  242. * `BOOST_THREAD_DONT_USE_MOVE`
  243. If __SUNPRO_CC < 0x5100 the library defines
  244. * `BOOST_THREAD_DONT_PROVIDE_FUTURE_CTOR_ALLOCATORS`
  245. [endsect]
  246. [section:vacpp VACPP]
  247. If __IBMCPP__ < 1100 the library defines
  248. * `BOOST_THREAD_DONT_USE_CHRONO`
  249. * `BOOST_THREAD_USES_DATE`
  250. And Boost.Thread doesn't links with Boost.Chrono.
  251. [endsect]
  252. [section:ce WCE]
  253. If _WIN32_WCE && _WIN32_WCE==0x501 the library defines
  254. * `BOOST_THREAD_DONT_PROVIDE_FUTURE_CTOR_ALLOCATORS`
  255. [endsect]
  256. [endsect]