Denis Blank
92d8bbad36
Fix the MSVC 16 build
2019-09-28 17:29:30 +02:00
Denis Blank
a2fdfdfceb
Use a promise<> for work rather than a dedicated work_base
2019-09-02 00:01:26 +02:00
Denis Blank
389002e918
Improve the work wrapper
2019-09-01 23:47:59 +02:00
Denis Blank
e09d26f3c6
First work on passing an exception to the executable work
...
* Make work r-value callable only by default
2019-08-31 03:30:03 +02:00
Denis Blank
422b6138cd
Lift control flow compiler intrinsics into the used scope
...
* Also make UNREACHABLE trap in debug mode
2019-08-27 04:01:37 +02:00
Denis Blank
d842c14268
Re-enable the converting constructor of continuable_base
...
* Probably a forgotten leftover from debugging
mainly responsible for more efficient conversions only.
2019-03-19 17:06:58 +01:00
Denis Blank
e9be3eb8c3
Improved the coroutine support auto detection on MSVC
...
* Based on _RESUMABLE_FUNCTIONS_SUPPORTED inspired from asio.
2019-03-15 17:11:38 +01:00
Denis Blank
bc4d69735c
Improve cti::split and make it workable with plain callbacks
2019-03-11 16:39:35 +01:00
Denis Blank
daa2fdd686
Implement cti::split which makes it possible to resolve multiple
...
asynchronous control flows from a single promise.
2019-03-08 22:06:44 +01:00
Denis Blank
41f3429c85
Remove some using expressions
...
* Those caused issues in namespaces where symbols were preloaded
* Formatting fixes
2019-03-08 20:18:26 +01:00
Denis Blank
6b4f6de10f
Use the work erased type directly in release builds
...
* So this behaviour aligns to the one used in continuable_base and promise_base.
2019-03-08 18:27:57 +01:00
Denis Blank
fdd9a061c4
Make promise_base default constructible
...
* This makes it possible to use promise_base for optional
promises directly rather than wrapping it as optional<promise_base<...>>.
* Invalidate the promise_base after its first usage.
* Expose an `operator bool()` to make the validility accessible.
* Remove the no longer needed private promise_no_init_arg_t tag.
2019-03-08 18:13:40 +01:00
Denis Blank
d72e1bfb86
Implement async_on for asynchronous execution on a specific executor
...
* Makes it possible to specify an executor in addition to
the arguments passed to async.
* The reason why async should not support this directly is
that it should be closely modelled to std::async.
2019-01-26 03:46:39 +01:00
Denis Blank
fa589a1e95
Document range_loop
2019-01-14 23:14:29 +01:00
Denis Blank
20cd0191fc
For loops provide loop_result loop_break and loop_continue for better readability
2019-01-14 23:13:23 +01:00
Denis Blank
76ecc3d26d
Attempt to fix the build
2019-01-14 21:10:25 +01:00
Denis Blank
7491022d0f
Implement make_plain to make it possible to not handle special objects in handlers
2019-01-14 21:02:22 +01:00
Denis Blank
4c807aec75
Update a deprecation message
2019-01-14 18:13:22 +01:00
Denis Blank
60b75a6134
Finish the async implementation
2019-01-14 18:07:37 +01:00
Denis Blank
b86fe7a255
Additional work on async
2019-01-13 19:10:55 +01:00
Denis Blank
a4da3e84ef
Fix the range_loop build
2019-01-13 18:52:13 +01:00
Denis Blank
ac175b4e57
Start to implement the unit tests for loop and add range_loop
2019-01-13 18:19:49 +01:00
Denis Blank
135ebfccf3
Start to implement loop and async
2019-01-13 17:05:28 +01:00
Denis Blank
5c1cd87739
Doc improvement
2019-01-06 14:05:54 +01:00
Denis Blank
20e8c7d3e3
Reflow the license text
...
* For some reason some spaces were removed,
the license text and content stays the same.
2019-01-04 13:39:46 +01:00
Denis Blank
a3a9695174
Happy new year!
2019-01-04 13:35:44 +01:00
Denis Blank
c066940d8d
Use new types instead of aliases for type erasures
...
* Makes compiler output much more readable
This is configurateable through CONTINUABLE_WITH_IMMEDIATE_TYPES,
and automatically enabled for debug builds but disabled
for release builds.
* Remove the old continuable-trait.hpp header
* Make the signature of continuable not dependent anymore
on any size of the arguments which fixes the compilation
with forward declared types.
Thanks Rogiel for the correspoding bug report.
Closes #11
2019-01-04 13:12:48 +01:00
Denis Blank
3bd4dd40de
Fixate the args of the final callback
...
* Also allow to customize it through the
CONTINUABLE_WITH_CUSTOM_FINAL_CALLBACK define.
This can be used to implement custom unhandled
exception handlers and more.
2018-12-29 06:25:49 +01:00
Denis Blank
a099c504e1
Workaround for a MSVC required symbol link bug
2018-12-26 06:20:48 +01:00
Denis Blank
7a10363dce
Implement continuable_base<...>::as
...
* Can convert continuables to other compatible signatures
2018-12-26 05:38:10 +01:00
Denis Blank
f469b7058a
Implement make_cancelling_continuable()
...
* Can be used to cancel the chain when being inside a handler
2018-12-25 09:30:23 +01:00
Denis Blank
4127c02c3f
Add an overload to make_result which accepts a exception_arg_t and exception_t
...
* Can be used to forward the result correctly from next handlers
2018-12-25 09:05:51 +01:00
Denis Blank
d052a02595
Remove a bad GCC diagnostic pop when using result<...> and GCC
2018-12-25 08:42:42 +01:00
Denis Blank
7dbc95c4b3
Implement zero cost ready continuables for await expressions
2018-12-16 04:25:56 +01:00
Denis Blank
121265df71
Cleanup in result<>
2018-12-11 01:21:26 +01:00
Denis Blank
4c41995316
Document recover, rethrow and cancel
...
* Closes #9
2018-12-11 01:21:09 +01:00
Denis Blank
dd09c3d684
Bump the version to 4.0.0
2018-12-10 18:08:29 +01:00
Denis Blank
30d49141a8
Resolve ready continuables directly in sequential connections
2018-12-10 06:22:53 +01:00
Denis Blank
c7ef5c6f64
Adhust the SFO buffer size so it can contain a pointer at zero cost
2018-12-10 06:07:43 +01:00
Denis Blank
b2726982ac
Fix the build when coroutines are enabled
2018-12-10 06:03:46 +01:00
Denis Blank
57bb43138b
Fix a recursive template instantiation issue on clang and gcc
2018-12-10 05:08:39 +01:00
Denis Blank
1320c8eb63
Add a unit test which tests for ready continuables explicitly
2018-12-09 17:01:56 +01:00
Denis Blank
1bdee5b371
Remove an unused using
2018-12-09 16:49:03 +01:00
Denis Blank
bdada99096
Fix the immediate return type of chained continuables
...
* Statically resolve ready continuables
2018-12-09 16:48:08 +01:00
Denis Blank
7273891a4c
Specialize the continuation chainer in case ready continuables are chained
2018-12-09 04:53:28 +01:00
Denis Blank
9ceee76647
Fix an issue with the is_ready overload
2018-12-08 17:52:22 +01:00
Denis Blank
4b1f6281fc
Initial work on wrapping all continuations into the triple path schema
2018-12-08 05:53:44 +01:00
Denis Blank
cb6ce5b43b
get_arg_t -> query_arg_t
2018-12-08 04:50:38 +01:00
Denis Blank
24158583b7
Provide the get_arg_t and is_ready_arg_t also from continuables created through make_*
2018-12-08 04:49:03 +01:00
Denis Blank
6947091a27
Preserve the ownership across chainings
...
* Fixes the unit tests
2018-12-08 04:31:32 +01:00