2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-20 02:32:19 +00:00
Commit Graph

496 Commits

Author SHA1 Message Date
Oliver Kowalke
f225548427 C++14 - barrier 2015-12-02 17:18:07 +01:00
Oliver Kowalke
4157d2dc5d fix unbounded_channel 2015-12-02 17:17:43 +01:00
Oliver Kowalke
726d4d51b9 ++14 polishing 2015-12-01 21:07:11 +01:00
Oliver Kowalke
8751e7e642 C++14 (un)boudned_channel 2015-11-30 22:06:24 +01:00
Oliver Kowalke
204a3ebc47 C++14 - fss_cleanup_function 2015-11-30 20:23:50 +01:00
Oliver Kowalke
df45a33f70 C++14 - spinlock 2015-11-30 20:23:29 +01:00
Oliver Kowalke
03e39b0400 c++14 - autoreset_event 2015-11-30 20:22:58 +01:00
Oliver Kowalke
3c8547c161 remove file interupt_flags.hpp 2015-11-30 20:22:32 +01:00
Oliver Kowalke
7bd1863115 apply noexcept 2015-11-25 19:32:32 +01:00
Oliver Kowalke
a344247f07 remove forced_unwind and related functions
- unwinding the stack via exception is not always necessary
- usually a fiber returns from its fiber-fn (stack is already unwound)
- if a fiber has to terminate, interrupt that fiber
2015-11-25 19:30:25 +01:00
Oliver Kowalke
6112d85a1a test for max. time_point before apply to condition_variable
- autoreset_event::reset() might get an time-point with value
  of std::chrono::steady_clock::time_point::max()
- this value make the underlying call to pthread_condition_wait() fail
  (not reported by std::condition-variable::wait_until())
2015-11-25 19:21:11 +01:00
Oliver Kowalke
6d3f00902f use this in capture-list 2015-11-22 14:42:28 +01:00
Oliver Kowalke
ca655a84d9 execute func + set active fiber inside context::resume() 2015-11-22 14:28:09 +01:00
Oliver Kowalke
5277c51bbb re-add previously removed context::attach() 2015-10-21 15:40:50 +02:00
Oliver Kowalke
cfc4b6f292 protect worker_queue by spinlock 2015-10-21 15:26:06 +02:00
Oliver Kowalke
f743b63bc0 replace context::attach()/detach() by context::migrate() 2015-10-21 15:25:12 +02:00
Oliver Kowalke
ee2fc59ca1 call destructor for stored values in shared_state 2015-10-20 10:09:57 +02:00
Oliver Kowalke
11419967cd condition unlocks external mutex befor context switch 2015-10-18 20:07:24 +02:00
Oliver Kowalke
8ddf96f756 reformating in scheudler.hpp 2015-10-18 20:07:01 +02:00
Oliver Kowalke
4710e12fe1 rename scheduler::re_schedule() -> scheduler::suspend() 2015-10-18 20:03:38 +02:00
Oliver Kowalke
af6ead53ae static assert for linking context with a queue 2015-10-18 20:00:41 +02:00
Oliver Kowalke
abe114ad81 segmented-stacks=on -> only segmented_stack is available 2015-10-18 19:21:45 +02:00
Oliver Kowalke
b540e80619 cotnext::suspend() with default parameter nullptr 2015-10-18 09:23:15 +02:00
Oliver Kowalke
e63186adfe use std::addressof() for references in shared_state<R&> 2015-10-17 15:17:31 +02:00
Oliver Kowalke
559e498982 context::terminate() as replacement for set_terminated_()/release() 2015-10-17 15:10:28 +02:00
Oliver Kowalke
bafd65bcf3 remove yield-queue + pass functor to resume-op 2015-10-16 21:48:57 +02:00
Oliver Kowalke
de076200a6 future: support moveable-only types 2015-10-14 21:03:33 +02:00
Oliver Kowalke
79e5776805 qualify functions which use intrusive-list with const and noexcept 2015-10-14 16:05:20 +02:00
Oliver Kowalke
51c1a96c4d introduce attach/detach of context 2015-10-14 13:37:44 +02:00
Oliver Kowalke
c738fefec7 remove spinlock protecting context lists 2015-10-12 21:59:47 +02:00
Oliver Kowalke
1eafd3e281 support movable types 2015-10-12 10:29:14 +02:00
Oliver Kowalke
01dda0048f remove std::mutex associated with yield-queue 2015-10-11 08:42:48 +02:00
Oliver Kowalke
dbfd80fb2d use yield-queue because work-sharing
- yield-queue prevents resumtion of a fiber which is passed to
  awakened() but has not yet suspended
2015-10-10 21:52:03 +02:00
Oliver Kowalke
5357f7038e scheduling-algorithm handles empty ready-queue
- if dispatcher-context detects empty ready-queue
  the scheduler has to be suspended till signaled or
  timeout reached
2015-10-03 09:35:47 +02:00
Oliver Kowalke
4a37a15d19 move make_dispatcher_context() to cpp file 2015-10-03 09:14:33 +02:00
Oliver Kowalke
4cd1a910d9 use schwarz counter idiom for static variable initialization 2015-10-02 17:28:59 +02:00
Oliver Kowalke
20196fcd69 set active context to nullptr in ~scheduler() 2015-09-30 19:58:04 +02:00
Oliver Kowalke
f9ffd54666 addjust calling do_invoke() 2015-09-30 17:38:12 +02:00
Oliver Kowalke
4c791a3790 support for fiber properties + custom scheduler 2015-09-29 17:54:29 +02:00
Oliver Kowalke
a847baa932 link/unlink of context protected by spinlock 2015-09-28 19:58:22 +02:00
Oliver Kowalke
eb7c4249d5 rename managed_is_linked() -> worker_is_linked() 2015-09-28 19:35:59 +02:00
Oliver Kowalke
68f8053059 use do_invoke() 2015-09-28 18:47:59 +02:00
Oliver Kowalke
ef19ef9cc4 use auto for fiber-fn on fiber's stack 2015-09-27 20:40:54 +02:00
Oliver Kowalke
f0cd02e489 remove noexcept from fiber::detach() 2015-09-27 20:40:36 +02:00
Oliver Kowalke
0b4c1ae306 store fiber-fn on fiber's stack 2015-09-27 16:14:55 +02:00
Oliver Kowalke
73b03c1d67 use std::allocator_arg for execution_context ctor 2015-09-27 16:09:11 +02:00
Oliver Kowalke
fc404c58eb unwind at shutdown
- scheduler holds a list of managed worker-fibers
- ~scheduler() requests stack unwinding for fibers not yet terminated
2015-09-24 17:35:40 +02:00
Oliver Kowalke
fcb981ccf7 pass flag_ as reference arg to lmbda for condition in autoreset_event 2015-09-23 17:42:17 +02:00
Oliver Kowalke
e38dc9b139 renaming of scheduler member functions 2015-09-22 19:30:29 +02:00
Oliver Kowalke
b43f288469 support for futures added 2015-09-22 19:17:08 +02:00