Oliver Kowalke
a4c2315c54
fix examples because autoreset_event was removed
2016-01-25 21:47:58 +01:00
Oliver Kowalke
172d5569a6
fix typo in comment of example work_sharing.cpp
2016-01-20 19:44:59 +01:00
Oliver Kowalke
f01cf1daff
update migration example
2016-01-20 19:42:26 +01:00
Oliver Kowalke
34be91cb3c
update docu migration
2016-01-17 21:08:29 +01:00
Oliver Kowalke
3319841788
use spinlock_lock+context instead of function<>
2015-12-03 17:57:00 +01:00
Oliver Kowalke
726d4d51b9
++14 polishing
2015-12-01 21:07:11 +01:00
Oliver Kowalke
f743b63bc0
replace context::attach()/detach() by context::migrate()
2015-10-21 15:25:12 +02:00
Oliver Kowalke
51c1a96c4d
introduce attach/detach of context
2015-10-14 13:37:44 +02:00
Oliver Kowalke
7617b74e57
remove second unlinking from worker-queue in work-sharing example
2015-10-12 22:05:15 +02:00
Oliver Kowalke
c07115115c
work sharing example: some modifications
2015-10-12 18:55:54 +02:00
Oliver Kowalke
0deb75a699
modify work-sharign example
2015-10-12 18:44:21 +02:00
Oliver Kowalke
380e8b30c1
use atomic coutner for remainng fibers
...
- instead of using scheduling_algorithm::has_ready_fibers() use
a atomic counter as termination indication
- scheduling_algorithm::has_ready_fibers() returns true even if
only main-context and dispatcher-context are ready -> false indication
for work-sharing example
2015-10-11 12:01:30 +02:00
Oliver Kowalke
d4c7232fa2
modify work-sharing example
2015-10-11 08:41:49 +02:00
Oliver Kowalke
ecab1c5ee6
work-sharing example
2015-10-10 21:51:14 +02:00
Oliver Kowalke
253d981f52
examples added
2015-09-29 17:55:46 +02:00
Oliver Kowalke
eafeaaae01
remove examples and tests
2015-09-16 19:12:57 +02:00
Nat Goodspeed
268922a9e6
Merge branch 'develop' of http://github.com/olk/boost-fiber into develop
2015-09-09 13:51:50 -04:00
Oliver Kowalke
c89410dfd8
uses intrusive::list<> isntread hand-written queues
2015-09-09 19:22:54 +02:00
Nat Goodspeed
6702d7cb9c
Merge branch 'develop' of http://github.com/olk/boost-fiber into develop
2015-09-08 06:21:33 -04:00
Oliver Kowalke
5854743a0a
force segfault in work-sharing example
2015-09-07 22:24:20 +02:00
Oliver Kowalke
3200e419d2
increase amount of fibers and threads
2015-09-07 20:58:22 +02:00
Nat Goodspeed
f28b6fc497
Update shared_ready_queue::main_fiber comments.
2015-09-07 14:55:30 -04:00
Nat Goodspeed
6cf8f4627f
Update work_sharing to never share a thread's main fiber.
...
Instead, when the main fiber is passed to awakened(), stash it in a separate
slot and make pick_next() return it only when the shared queue is empty.
Update ready_fibers() to include a non-empty main_fiber slot.
2015-09-07 14:50:55 -04:00
Oliver Kowalke
6499bb07e7
fiber_context renamed to context
2015-09-07 17:23:59 +02:00
Oliver Kowalke
4dc5aaab59
add example of work-sharing
2015-09-07 11:53:13 +02:00