Commit graph

18 commits

Author SHA1 Message Date
Peter Conrad
4bdab0bb0a Removed checks for obsolete boost version numbers 2019-09-24 17:24:38 +02:00
Nathan Hourt
2e0a03ac1f
Fix build against boost 1.68+
In Boost 1.68, the `boost/context/all.hpp` header was removed.
Ref: 2e37599461
If building against Boost 1.68+, use `boost/context/continuation_fcontext.hpp` instead.
2018-11-07 11:07:34 -06:00
Anton Autushka
20836338d2 Suppress coroutines deprecation warning in boost 1.62 2017-11-09 15:41:44 +03:00
Anton Autushka
c2a37a83bd Boost 1.61 compatibility fix 2017-11-09 15:18:58 +03:00
Vikram Rajkumar
d1faea2bde Revert incorrect start of boost compatibility update 2017-01-13 13:36:13 -06:00
Daniel Larimer
e7d0d26fe2 adding fixed_string definition 2016-09-15 15:29:16 -04:00
drltc
16c0709500 Increase stack size to 2MB 2014-11-19 11:27:22 -05:00
Eric Frias
1af4ac6a5c Schedule fibers in the order they are asynced or unblocked. Earlier behavior was always to start newly-asycned tasks before resuming existing tasks, so existing tasks could be starved if there was a steady stream of new tasks created. Now all tasks are started or resumed in the order they are created or unblocked. 2014-10-16 15:25:31 -04:00
Eric Frias
454573e048 Add support for boost 1.56. 2014-09-08 10:41:59 -04:00
Eric Frias
3222dc7c0b When reusing a context, re-initialize most of its fields. This fixes at least two errors:
- we were canceling tasks that hadn't been canceled, because the canceled flag was left set to true and the next task assigned to the context then became canceled as soon as it yielded
 - we were resumeing blocked tasks before they should have resumed, because their blocking_promises list wasn't cleared and they were unblocking because the erroneous promises were fulfilled
As a debugging aid, we also record the cancellation reason whenever a task is canceled, and include that in the canceled_exception (this is only enabled in debug builds)
2014-08-28 15:43:26 -04:00
Eric Frias
ac385d1f6b Allow the user to supply a reason string when canceling a task (useful for debugging) 2014-08-27 14:07:44 -04:00
dnotestein
34296fbb4a Eliminate local variable that was shadowing data member variable stack_ctx in context object, which resulted in an assert when the context object was destructed. 2014-07-24 15:18:53 -04:00
Daniel Larimer
6ef73a4198 reduce default stack size by 50% to 4x default from 8x 2014-07-17 23:03:23 -04:00
dnotestein
bf9bd5a9f6 Increase task context stack from 64K to 8*64K to prevent the stack from overflowing in the p2p code. 2014-06-16 16:59:37 -04:00
Daniel Larimer
dd18675788 fix boost 1.54 support 2013-08-11 10:18:08 -04:00
dnotestein
404cf8ae5c Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc into phoenix
Conflicts:
	CMakeLists.txt
	include/fc/ptr.hpp
2013-08-11 09:59:55 -04:00
Daniel Larimer
7b8494d7f8 upgrading to a version of boost that includes boost::atomic and boost::context 2013-08-08 21:31:35 -04:00
Daniel Larimer
59a121d64b Updating FC with changes from phoenix-int 2013-06-05 15:19:00 -04:00
Renamed from src/context.hpp (Browse further)