Andrey Semashev
ee609e8806
Cleanup header includes.
...
1. Make inclusion of boost/bind/bind.hpp conditional in some cases, when the
code actually conditionally uses boost::bind. Reduces compile-time overhead
and fixes https://github.com/boostorg/thread/issues/307 .
2. Remove some unnecessary uses of boost::ref. This allows to avoid including
boost/core/ref.hpp in a few places, and avoids the associated template
instantiation overhead in others.
3. Replace deprecated header includes with the more recent alternatives. For
example: boost/detail/lightweight_test.hpp -> boost/core/lightweight_test.hpp,
boost/ref.hpp -> boost/core/ref.hpp.
4. Replace some blanket includes with the more fine-grained ones. For example,
boost/utility.hpp, boost/atomic.hpp. This reduces compile time overhead.
5. Add some missing includes, for example, boost/core/ref.hpp and
boost/type_traits/is_same.hpp.
6. Replace uses of std::is_same with boost::is_same (with the corresponding
included header) since the standard type_traits header presence and validity
is not tested by the code. Using boost::is_same makes the code more portable.
2020-04-05 01:51:58 +03:00
Vicente J. Botet Escriba
1ae96b3820
Merge branch 'develop' into fix/blocking_future
2015-02-20 14:34:55 +01:00
Vicente J. Botet Escriba
7ba9591015
first trial towards a work=nullary_function<void() const>.
2015-02-20 10:20:38 +01:00
Vicente J. Botet Escriba
06b3f6a9d7
disable async deferred on C++98 as not implemented.
2015-01-23 06:02:11 +01:00
Vicente J. Botet Escriba
895b4a0ac5
Try to fix a lot of issues, even if alldoesn't works yet.
2015-01-22 23:10:40 +01:00
Vicente J. Botet Escriba
f36f5d6dbb
Added more async deferred tests.
2014-08-31 18:16:14 +02:00
Vicente J. Botet Escriba
73fbc520e8
extract async executor test.
2014-03-01 08:38:08 +01:00
Vicente J. Botet Escriba
9d1c957625
change check time to 500 ms.
2014-02-21 13:36:33 +01:00
Vicente J. Botet Escriba
51e49c69b5
refactor elapsed time check and fix bad uses of base_type. in csbl::unique_ptr.
2014-02-08 16:28:02 +01:00
Vicente J. Botet Escriba
bfa0ccee88
Added BOOST_RESULT_OF_USE_DECLTYPE on async test.
2014-02-03 18:33:01 +01:00
Vicente J. Botet Escriba
f02e25e4e7
Add BOOST_RESULT_OF_USE_DECLTYPE.
2014-02-02 08:45:29 +01:00
Vicente J. Botet Escriba
af7fde5eae
Added test async with a member function.
2014-01-28 23:12:29 +01:00
Vicente J. Botet Escriba
6c5a6e4330
Reorganized executors on its own directory adding serial_executor and renamed thread_pool by basic_thread_pool and user_scheduler by loop_scheduler.
2014-01-12 17:52:27 +01:00
Vicente J. Botet Escriba
713f5a449c
Thread: Added missing include.
...
[SVN r86599]
2013-11-09 15:26:49 +00:00
Vicente J. Botet Escriba
7875edd234
Thread: make use of csbl to make the code more readable and to ensure that it interact well with the std.
...
[SVN r86504]
2013-10-28 20:08:39 +00:00
Vicente J. Botet Escriba
f7f0347780
Thread: first steps toward async(executor&, f).
...
[SVN r86327]
2013-10-16 06:15:51 +00:00
Vicente J. Botet Escriba
5a1a9df623
Thread: fix shared_future::get when the shared state is async; refactor the shared_state classes.
...
[SVN r84607]
2013-06-02 05:56:13 +00:00
Vicente J. Botet Escriba
9e2a34ca9d
Thread: extend duration check from 200ms to 300ms.
...
[SVN r84467]
2013-05-24 21:24:13 +00:00
Vicente J. Botet Escriba
ffbcf96d90
Thread: let a little bit more time.
...
[SVN r84003]
2013-04-21 15:04:05 +00:00
Vicente J. Botet Escriba
8a259612cd
Thread: renamed all the examples as ex_; Added some lambda test.
...
[SVN r83762]
2013-04-04 00:04:16 +00:00
Vicente J. Botet Escriba
d030dbd61c
Thread: fix some issues with futures of MoveOnly types + complete the variadic async function.
...
[SVN r82808]
2013-02-10 18:14:49 +00:00
Vicente J. Botet Escriba
59f91a2405
Thread: extend the timeout in test async_pass.
...
[SVN r82542]
2013-01-18 22:04:27 +00:00
Vicente J. Botet Escriba
15eff9e412
Thread: adjust some durations on tests
...
[SVN r82459]
2013-01-12 09:48:54 +00:00
Vicente J. Botet Escriba
4b1c13e5cb
Thread: replace BOOST_NO_CXX11_HDR_INITIALIZER_LIST by specific BOOST_THREAD_NO_CXX11_HDR_INITIALIZER_LIST that takes in account that gcc up to 4.6 doens't supports it as expected
...
[SVN r82311]
2013-01-02 00:04:33 +00:00
Vicente J. Botet Escriba
1c62b1599d
Thread: manage with #7575 for c++11 compliant compilers + try to fix issue with is_convertible on gcc-4.4.
...
[SVN r81410]
2012-11-18 10:09:12 +00:00
Vicente J. Botet Escriba
d01c0232da
Thread: Added asynch deferred on a specifc configuration+ prepare the work for async futures joining the producer thread
...
[SVN r81152]
2012-11-02 21:30:36 +00:00
Vicente J. Botet Escriba
1c0a4999b8
Thread: rework async and packaged task.
...
[SVN r81117]
2012-10-31 01:37:57 +00:00
Vicente J. Botet Escriba
30bfc7bcea
Thread: remove some rvalue-references limitations for future::then and make_shared.
...
[SVN r81111]
2012-10-30 09:36:22 +00:00
Vicente J. Botet Escriba
dedaa7e617
Thread: version 4: Added variadic templates for packed_task cons, async, thread cons + added make_future + future::get() can be called just once
...
[SVN r80755]
2012-09-29 16:31:27 +00:00
Vicente J. Botet Escriba
749b1034f9
Thread: test async with moveonly functors.
...
[SVN r80447]
2012-09-08 14:16:07 +00:00
Vicente J. Botet Escriba
daec1268f9
Thread: Added async function
...
[SVN r79979]
2012-08-12 16:31:21 +00:00
Vicente J. Botet Escriba
e09105de98
Thread: fix TIME_UTC, WINVER, constexpr for tags, and don't use local files
...
[SVN r78802]
2012-06-03 18:11:52 +00:00
Vicente J. Botet Escriba
a4d9355060
Threads: Added a lot of unit tests
...
[SVN r76295]
2012-01-03 21:23:11 +00:00