Commit Graph

2221 Commits

Author SHA1 Message Date
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
c1523921e1 Fixed instantiation dependency failure in previous commit. 2015-09-07 19:15:02 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
05762ce477 Fix issue #2 where future<void>::get() was not returning a void type. 2015-09-07 19:04:11 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
30eb27cbe6 Fix compile error on GCC 5 2015-09-07 18:08:39 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
9d7f2bfc26 More outcome rename caused fixes. 2015-08-29 19:11:51 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
111e8263cf Renamed the directories to outcome. 2015-08-29 18:47:16 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
97e5c6135f Lots of renaming Monad to Outcome. 2015-08-29 18:40:55 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
b7486938c5 Added BOOST_MONAD_PROPAGATE() and BOOST_MONAD_AUTO(). 2015-08-19 20:11:01 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
ce2dea37a0 Fixed bug where future<void>.get() was not compiling. This fixes issue #1. 2015-08-17 21:07:38 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
e493fa839f Made much more rigorous the construction of shared_future_ptr.
Fixed a memory corruption bug where if a shared_future was destructed before its promise's continuations fired, it blatted all over memory. Sorry.
2015-08-16 23:05:42 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
98b931c37c Fixed bug where if a future was destroyed after being used to add continuations, the continuations were not being executed.
Did some work on shared_future, but I really need to sit down and make rigorous when it should be make_shared and when it should be enable_from_this.
2015-08-15 23:06:04 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
8ac31ba8e1 Fixed bad semantics in future promise where if a future died before a promise and then you tried to set state, it was throwing promise_already_set instead of no_state. 2015-08-15 22:02:21 +01:00
Niall Douglas
62c6408dd4 GCC 5 was complaining about out of order make_error_code declaration on Boost. It's actually a Boost bug, but worked around it. 2015-08-15 20:12:49 +01:00
Niall Douglas
b8a9e0959f shared_future was still using wrong promise type :( 2015-08-15 19:13:59 +01:00
Niall Douglas
f85a9f6f30 shared_future had the wrong promise_type :( 2015-08-15 18:44:11 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
6c6178a523 Added basic_future::get_state().
Added basic_future::get_monad().
2015-08-15 18:24:52 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
84c211992a Fix misplaced constexpr 2015-08-15 17:11:43 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
a30933ffea fix boost thread path for older boost. 2015-08-09 14:04:09 +01:00
Niall Douglas
dc9db20476 Actually fix boost error code support. 2015-08-09 02:43:19 +01:00
Niall Douglas
f03a405088 typo 2015-08-09 01:54:18 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
7e3df10fed future_category and future_errc were mismapped. 2015-08-08 20:49:17 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
013309f8d4 Typo 2015-08-08 19:43:35 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
a83a36fb7e Added BOOST_MONAD_USE_BOOST_ERROR_CODE support. 2015-08-08 19:38:04 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
d78e496fd4 Minor fixes. 2015-08-08 19:15:57 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
7e6f05ffdf Fix bad readme badge links. 2015-08-07 03:11:06 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
3694a2c616 Docs now live on github. 2015-08-07 03:07:47 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
a0aacbcf23 upd 2015-08-07 02:48:21 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
84cf53b555 Boost.Monad is ported to use Boost.Thread, Chrono instead of the STL. Multi-abi unit test to test both ABIs coexist in the same translation unit added and verified as working on MSVC. 2015-08-04 19:40:04 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
5dbe5eb4c9 Boost.Monad is now fully Boost.APIBinded 2015-08-04 18:11:30 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
b6a10e553a Relocated monads into boost::monad namespace, leaving futures alone in the boost::monad::lightweight_futures namespace. 2015-08-03 19:19:07 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
d7fcda449b Boost.Monad rename part 5 2015-08-03 18:51:38 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
c1164c5828 Boost.Monad rename part 4 2015-08-03 18:22:30 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
ee0a0f0c11 Boost.Monad rename part 3 2015-08-03 18:13:14 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
5f33a65e9e Rename to Boost.Monad part 2 2015-08-03 18:00:34 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
01aebc0b94 Rename to Boost.Monad part 1 2015-08-03 17:55:11 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
e582acc116 upd 2015-08-03 17:41:09 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
0640e842b8 Got value_storage_type and therefore basic_monad and basic_promise and basic_future default constructor working with constexpr on VS2015. 2015-07-23 00:54:05 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
7d6ef51f8b Switched on constexpr for VS2015. With a few workarounds, seems to work. 2015-07-22 03:01:14 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
c86127ee8d typo 2015-07-19 06:07:53 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
9801062c37 Added global constexpr variable empty.
Added missing make_result, make_option functions.
2015-07-19 05:59:00 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
f702ec203c Fix thread sanitiser warning. 2015-07-16 03:51:18 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
494d4ed7fb - [x] Implement wait_for()/wait_until().
- [x] when_all composure.
2015-07-16 03:29:47 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
ac0ce8b4ed wip 2015-07-15 05:00:56 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
0ee099b19a Theoretically wait composure is implemented. Really must remember to test exception safety. 2015-07-13 03:02:38 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
19e794f459 Fix overuse of constexpr in C++ 11 2015-07-12 18:20:02 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
e43439e470 typo 2015-07-12 18:14:49 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
5224a0a5c9 - [x] Implement N4399 continuations for shared_future.
Also now compiling on VS2015 again.
2015-07-12 17:49:41 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
faeb93b6a0 shared_future continuations compiling, but not working. 2015-07-12 16:10:10 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
86ae0f8c82 Reenabled future continuations. All passing green. 2015-07-12 15:12:03 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
8c9fe0bb21 Fixed all remaining benchmarks and performance regressions on GCC. Well, shared_ptr is a lot slower than before, the new design seems to not optimise as well if memory synchronisation is happening (the simple loop is also much slower, but the producer consumer test is actually slightly improved) 2015-07-12 05:43:51 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
465bacb78f Many bug fixes. Nearly passes test suite, there is some problem remaining in the threaded test. 2015-07-12 03:18:02 +01:00