Vicente J. Botet Escriba
0bed674233
ref #11192- boost::future<>::then() with an executor doesn't compile when the callback returns a future
2015-04-18 07:04:50 +02:00
Vicente J. Botet Escriba
45c9a1d7fd
ref #11192- boost::future<>::then() with an executor doesn't compile when the callback returns a future
2015-04-17 18:30:49 +02:00
Marcel Raad
b5c6f760c5
Respect BOOST_USE_WINDOWS_H again
...
With the GetTickCount64 and WinRT fixes, the Windows API functions were always re-declared regardless of BOOST_USE_WINDOWS_H. This breaks clang-cl, which complains about conflicting definitions.
2015-03-26 13:43:44 +01:00
Vicente J. Botet Escriba
ba2f814342
Don't lock while storing the exception_ptr list as only the task_region thread can do it.
2015-03-16 08:41:04 +01:00
Vicente J. Botet Escriba
5169a5414b
mutex::unlock must not throw.
2015-03-14 16:26:35 +01:00
Vicente J. Botet Escriba
82b9a4e28c
Use coherently size_type.
2015-03-12 04:09:34 +01:00
Vicente J. Botet Escriba
e989d2f626
Add comments.
2015-03-12 04:08:42 +01:00
Vicente J. Botet Escriba
dcebe26a11
try to get rid of possible deadlock.
2015-03-10 00:47:38 +01:00
Vicente J. Botet Escriba
c7bb6fa318
Allow timed and recursive mutex on ANDROID. Related to #11035 .
2015-03-01 01:37:45 +01:00
Vicente J. Botet Escriba
e0ce8af1d9
cleanup work.hpp
2015-02-28 12:39:03 +01:00
Vicente J. Botet Escriba
c54dbe30a2
move the work parameter.
2015-02-28 12:37:27 +01:00
Vicente J. Botet Escriba
b8763b05ad
Add missing push(movable&&) and Run some failing tests that work when BOOST_NO_CXX11_RVALUE_REFERENCES is not defined.
2015-02-28 12:35:42 +01:00
Vicente J. Botet Escriba
41172e4814
fix missing include in caller_context.hpp and let the possibility to dump function at compile time.
2015-02-28 12:33:46 +01:00
Vicente J. Botet Escriba
25310eaf7c
make use of nullary_function<void()> as work for timed schedulers (priority_queue) on C++11.
2015-02-22 23:44:34 +01:00
Vicente J. Botet Escriba
ec770eeb6a
fix forwarding reference_wrapper in make_ready_future.
2015-02-20 16:34:56 +01:00
Vicente J. Botet Escriba
b9ab307912
rollback nullary_function<void()const> specialization.
2015-02-20 16:33:53 +01: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
889c178173
fix issues with fallback_to. The route cause was that the original future was locked after destruction. This was more evident when the future was already ready when future::then was called.
2015-02-20 14:34:33 +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
b07f18facf
remove include/boost/thread/detail/work.hpp.
2015-02-20 10:18:35 +01:00
Vicente J. Botet Escriba
7b1b1b5daa
fix include guard on serial_executor_cont.hpp.
2015-02-19 18:00:29 +01:00
Vicente J. Botet Escriba
63fb28c7d4
Merge branch 'develop' into fix/blocking_future
2015-02-19 10:36:20 +01:00
Vicente J. Botet Escriba
e715d74a95
use a different name for serial_executor continuation as it add more constraints.
2015-02-19 10:30:25 +01:00
Vicente J. Botet Escriba
a04497af24
make thread-safe serial_executor. There are yet somme synchronization limitations.
2015-02-18 10:45:10 +01:00
Vicente J. Botet Escriba
821a93ca1a
first draft for serial_executor based on continuations.
2015-02-17 19:09:56 +01:00
Vicente J. Botet Escriba
e2cda49b0b
cleanup. unlock before submiting to an executor as it can directly call the continuation.
2015-02-16 14:17:57 +01:00
Vicente J. Botet Escriba
a4e7eba1d4
cleanup.
2015-02-11 07:05:10 +01:00
Vicente J. Botet Escriba
67778b3278
fix shared_future::then, get and get_or.
2015-02-10 00:01:28 +01:00
Vicente J. Botet Escriba
a5e6952a95
merge from develop - coamesced timers.
2015-02-09 13:08:55 +01:00
Vicente J. Botet Escriba
d628b8d36c
Merge branch 'develop' of github.com:boostorg/thread into develop
2015-02-05 08:30:39 +01:00
Vicente J. Botet Escriba
05e492c56c
Merge branch 'master' of github.com:boostorg/thread
2015-02-04 22:33:22 +01:00
Vicente J. Botet Escriba
3c2321c37a
Merge pull request #45 from Matulis/master
...
Updated namespace to call no_interruption_point sleep_for
2015-02-04 22:31:11 +01:00
Martin Matulyauskas
6c72a2527f
Updated namespace to call no_interruption_point sleep_for
2015-02-04 15:00:51 -06:00
Vicente J. Botet Escriba
5960985355
merge from develop: Reverted parts of c16ec42 because 45510fa was a better fix.:
2015-02-04 18:46:29 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
84e2b7869d
Merge branch 'develop' of github.com:boostorg/thread into develop
2015-02-04 13:58:30 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
401f69f108
Added coalesced timer support to Windows where that API is available. Tolerable delay is set to the maximum of 5% of interval or 32 ms.
2015-02-04 13:58:11 +00:00
Vicente J. Botet Escriba
4f57e3fb61
Merge pull request #43 from vtnerd/RevertMakeReady
...
Reverted parts of c16ec42 because 45510fa was a better fix.
2015-02-03 08:34:53 +01:00
Vicente J. Botet Escriba
fdf20f1adc
merge Allow to call shared_future::then multiple times. Related to #10972 .
2015-02-02 19:40:04 +01:00
Lee Clagett
990474ff47
Reverted parts of c16ec42 because 45510fa was a better fix.
2015-02-02 12:08:38 -05:00
Vicente J. Botet Escriba
441c89d304
Allow to call shared_future::then multiple times. Related to #10972 .
2015-02-02 17:41:57 +01:00
Vicente J. Botet Escriba
63098e84a2
Merge branch 'develop' into fix/blocking_future
2015-02-01 19:39:43 +01:00
Vicente J. Botet Escriba
45510facc7
unwrapped future must forward the continuation to the wrapped future. Related to #10964 .
2015-02-01 14:56:52 +01:00
Vicente J. Botet Escriba
cf539064d6
Deduce T& when the make_ready_future parameter is reference_wrapper<T>. Relates to #10979 .
2015-02-01 13:44:41 +01:00
Vicente J. Botet Escriba
3431736c88
Merge branch 'develop' into fix/blocking_future
2015-01-27 22:22:37 +01:00
Jürgen Hunold
c1148a66cc
Fix gcc/clang shadow warnings.
...
The variable names are re-used in the all_futures_lock() functions.
2015-01-26 12:39:27 +01:00
Vicente J. Botet Escriba
5fa0a5d4c5
make shared_future::get() const. Related to #10971 .
2015-01-26 08:39:30 +01:00
Vicente J. Botet Escriba
e74fd82060
Merge from develop.
2015-01-24 18:02:31 +01:00
Vicente J. Botet Escriba
c16ec42941
Take care of #10964 .
2015-01-24 16:48:44 +01:00
Vicente J. Botet Escriba
b77eac3e37
Take care of #10963 .
2015-01-24 11:57:54 +01:00
Vicente J. Botet Escriba
35d7ae0d2e
add forgotten wait when shared_future::then deferred.
2015-01-23 08:36:46 +01:00