160 Commits

Author SHA1 Message Date
Michael Karcher 51b56566d0 Use BOOST_VERIFY instead of conditional BOOST_ASSERT 2024-01-12 14:10:15 +01:00
Brad Smith f7a3405478 Use mmap(2) MAP_STACK to allocate stacks on OpenBSD
Since OpenBSD 6.4 (https://www.openbsd.org/64.html), the stack pointer
must point to MAP_STACK memory, or the kernel may kill the process
with a signal.  All stack allocators must pass MAP_STACK to mmap(2).

I took inspiration from boostorg/context@7e14ab9 for this diff.
2021-07-10 02:24:22 -04:00
Vinnie Falco 05e2576914 Use a non-deprecated header 2020-08-10 18:12:55 -07:00
Oliver Kowalke 69ba7f82fd Merge branch 'develop' 2020-07-02 08:43:25 +02:00
Nikita Kniazev c08aa275ea Missed begin/end. Follow-up to PR#43
I did not notice that begin/end indirectly uses range_begin/range_end.
2020-07-02 08:42:45 +02:00
Nikita Kniazev 9ba7eea4d5 Cease dependence on Range 2020-07-02 08:42:06 +02:00
Oliver Kowalke 9c73b2f7c1 Revert "Cease dependence on Range"
This reverts commit a3e511feb9.
2020-03-30 17:14:59 +02:00
Oliver Kowalke 436e1dbe6f Revert "Cease dependence on Range"
This reverts commit 0c556bb592.

see #44 (One test fails to compile after boostorg/coroutine submodule updated)
2019-12-01 20:40:28 +01:00
Nikita Kniazev 0c556bb592 Cease dependence on Range 2019-11-25 17:45:04 +01:00
Nikita Kniazev a3e511feb9 Cease dependence on Range 2019-11-24 21:52:01 +03:00
Oliver Kowalke f6741b3887 Merge branch 'develop' 2019-03-20 14:59:22 +01:00
Oliver Kowalke 2090b4a4a8 Don't crash on pthread_cancel
Justinas V. Daugmaudis: This patch prevents abi::__forced_unwind from being eaten
2019-03-14 15:24:15 +01:00
Oliver Kowalke d20833c5f7 Merge branch 'develop' 2019-01-22 14:32:13 +01:00
Vinnie Falco 6c37e98873 Fix Windows dll-interface compilation warnings:
* Add BOOST_COROUTINES_DECL where needed

The resolves warning C4251:

"...needs to have dll-interface to be used by clients of class..."
2018-12-19 19:49:16 -08:00
Oliver Kowalke f226f9ba27 remove deprecation warning requested by Vinnie Falco 2018-12-13 09:26:09 +01:00
Daniela Engert 498302a051 Inheriting std::iterator is deprecated in C++17
Therefore replace inheritance by lifting std::iterator's members into the derived class.

Signed-off-by: Daniela Engert <dani@ngrt.de>
2018-01-01 16:24:17 +01:00
Oliver Kowalke cbab418fa6 add virtual dtor for push_coroutine_impl
- in context of #31
2017-08-10 19:27:57 +02:00
oliver Kowalke c33f5fcc42 fix type regarding to deprecation warning 2016-09-23 09:37:21 +02:00
oliver Kowalke 5eefc3c6eb maker boost.coroutine as deprectated 2016-09-06 13:12:16 +02:00
oliver Kowalke 64de8a62c9 declare boost.cotnext as deprecated 2016-06-14 15:13:24 +02:00
Oliver Kowalke cf0b1b2844 remove unnecessary attributes and flags 2016-03-08 06:34:43 +01:00
Oliver Kowalke bc76ee17e6 fcontext_t-API is no longer part of public API 2016-01-14 17:55:10 +01:00
Oliver Kowalke 014b28eb23 remove nothrow specifier 2015-11-15 14:44:25 +01:00
Oliver Kowalke a29c4a08b1 adapt new fcontext-API 2015-11-11 08:24:20 +01:00
Oliver Kowalke c8ca13f8c5 user support of segmented-stacks from boost.context 2015-11-11 07:59:00 +01:00
Ben Wiederhake 75ecf585a8 Fix signed pointer comparison. 2015-09-17 19:33:54 +02:00
Oliver Kowalke b3235bca7c add export declaration in cpp files 2015-06-19 18:52:40 +02:00
Oliver Kowalke 06f255c471 replace internal_stack_ctx by instance of preallocated 2015-06-02 17:22:24 +02:00
Oliver Kowalke 8b5cb1df2d add const_iterator to asymmetric_coroutine<>::pull_type 2015-04-29 20:31:08 +02:00
Nik Bougalis ba2517b6be Do not return dangling pointer to exception message 2015-04-10 13:23:14 -07:00
Oliver Kowalke 49bd16d34f delete iterator's post increment op. 2015-02-16 18:41:56 +01:00
anttirt a6bd532525 Optionally register stacks with valgrind 2014-10-06 15:59:05 +03:00
Oliver Kowalke 3991225896 fix issue related to ADL for begin()/end() 2014-08-28 20:00:26 +02:00
Oliver Kowalke 06145727ee prefix forward() with namespace boost 2014-08-21 18:48:14 +02:00
Oliver Kowalke ec0ce03081 fix nlining for full-specialized tempaltes 2014-08-21 17:15:10 +02:00
Oliver Kowalke 1005688697 fix MAP_ANONYMOUS for old Mac OS X 2014-07-09 19:44:41 +02:00
Oliver Kowalke 6def88c073 Fixed unbalanced include of abi headers
- resulting in more pops than pushes in MSVC.
2014-07-04 16:51:32 +02:00
Oliver Kowalke 6e23c9e816 use MAP_ANONYMOUS instead of file discriptor for mmap() 2014-06-27 21:46:46 +02:00
Oliver Kowalke 7e8fda6d6c set/remove flag_running 2014-06-25 17:45:27 +02:00
Oliver Kowalke ac73aeebf6 add macros for unidirectional trasnafer and symmetric corutines 2014-05-03 09:29:26 +02:00
Oliver Kowalke 223403af71 fix for #7988: range-for wit clang-c++11 2014-04-03 20:52:58 +02:00
Oliver Kowalke e44109ed6f some stuff 2014-04-02 18:22:21 +02:00
Oliver Kowalke 46adcaab5b remove stack_allocator parameter from ctor of coroutines 2014-04-02 18:10:52 +02:00
Oliver Kowalke c797ecab53 remove tempalte<> for MSVC 2014-03-31 20:00:17 +02:00
Oliver Kowalke 7a0dfb6a59 disable warnings for MSVC 2014-03-31 19:00:29 +02:00
Oliver Kowalke 29408a0746 fix typo: push_coroutine 2014-03-31 18:52:47 +02:00
Oliver Kowalke 272368f6f8 add missing stack_allocator parameter to ctor 2014-03-31 18:49:08 +02:00
Oliver Kowalke 19c95ad5cc dd missing keyword typename 2014-03-30 13:52:15 +02:00
Oliver Kowalke 665c2382ef asyymmetric-coroutine with placement new 2014-03-30 11:01:14 +02:00
Oliver Kowalke 24f523f4b3 small changes related to symmetric-coroutine 2014-03-27 20:59:17 +01:00