Commit Graph

323 Commits

Author SHA1 Message Date
Edward Diener
645d673992 Remove non-source files. 2018-12-03 08:00:59 -05:00
Oliver Kowalke
22e1366cf6 fix example join 2018-11-01 10:05:07 +01:00
Oliver Kowalke
2fff971242 fix unsufficent synchronization of work-stealing algorithms 2018-08-21 09:53:37 +02:00
Damian Jarek
10a56572fc
Fix asio_handler_invoke hook in ASIO example
The previous hook required the Fn to be CopyConstructible, wheras
ASIO 1.66+ permits MoveConstructible-only CompletionHandlers.

Resolves: https://github.com/boostorg/beast/issues/1134

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-05-18 21:05:17 +02:00
Oliver Kowalke
a76f54fcf3 move NUMA to separate library
- in context of #172
2018-05-13 09:20:38 +02:00
oliver Kowalke
514aa157ea examples: barrier sync. threads renamed to thead_barrier 2017-11-17 10:05:53 +01:00
oliver Kowalke
292528cbc9 examples: add reference to boost.filesystem in Jamfile 2017-11-17 10:05:25 +01:00
oliver Kowalke
e3ea9d32aa fix examples 2017-11-08 09:01:26 +01:00
Oliver Kowalke
1a39070426 HIP examples: add hipLaunchParm to kernel 2017-11-03 17:22:07 +01:00
oliver Kowalke
ebd039ec72 update examples 2017-11-03 07:59:26 +01:00
Oliver Kowalke
5fa2d03caa update license for compute examples 2017-11-02 21:50:47 +01:00
Oliver Kowalke
2401e6b70c HIP binding
- waitfor stream(s) to complete while fiber is suspended
2017-11-02 19:55:48 +01:00
Oliver Kowalke
07b1d88be6 update CUDA example 2017-11-02 19:55:10 +01:00
Oliver Kowalke
78f6b0f9ea CUDA binding
- waitfor stream(s) to complete while fiber is suspended
2017-11-01 17:20:08 +01:00
Oliver Kowalke
16913d2811 add status to ASIO yield_completion 2017-07-30 12:23:14 +02:00
Oliver Kowalke
a490f15523 fix examples for FreeBSD 2017-06-17 17:24:53 +02:00
Oliver Kowalke
328bf234d1 fix examples for Solaris 2017-06-17 15:07:14 +02:00
Oliver Kowalke
75f47d23fc reduce code in example simple 2017-06-17 12:02:01 +02:00
Oliver Kowalke
4bb776e515 add work-stealing example 2017-06-13 17:52:00 +02:00
Oliver Kowalke
732e91b634 Revert "no data transferred via continuation::resume()"
This reverts commit 953bcb423e.
2017-06-10 16:33:01 +02:00
Oliver Kowalke
953bcb423e no data transferred via continuation::resume()
- transfer from-context, ready-context, spinlock_lock via context
2017-05-29 18:13:08 +02:00
Oliver Kowalke
87c5f1e404 NUMA support 2017-05-06 22:19:57 +02:00
Oliver Kowalke
7178b59ba2 asio: yield_completion should be managed by a intrusive_ptr
- in context of #99: example yield.hpp possibly destroys locked mutex
2017-05-03 20:16:56 +02:00
oliver Kowalke
3a945ace60 fix asio example: use context::schedule 2017-03-06 09:03:09 +01:00
oliver Kowalke
8496dbf9c8 remove unused example 2017-03-03 09:48:11 +01:00
oliver Kowalke
8d53732808 fix renaming of ready_queue_type in examples 2017-03-03 08:15:38 +01:00
Oliver Kowalke
89dbbbdf69 fix example ping_pong 2017-02-26 11:11:37 +01:00
oliver Kowalke
2f3ca28af7 modify example ping-pong 2017-01-24 13:54:20 +01:00
Oliver Kowalke
7843617641 fix asio integration, thx to Arnaud Kapp 2016-11-24 19:25:21 +01:00
oliver Kowalke
de58b076eb fix asio example: scheduler-algorithm should not spin 2016-11-18 08:29:20 +01:00
Oliver Kowalke
fa071c27cf use SPMC (chase-lev algoritm) for ready-queue (work stealing) 2016-11-03 11:05:51 +01:00
Oliver Kowalke
b53e167a68 support for channels refactored
- buffered_channel: MPMC with lock-free guarantees
- unbuffered_channel: rendezvous point
2016-10-30 19:33:49 +01:00
Oliver Kowalke
ce962f9688 (un)bounded_channel renamed to (un)bounded_queue 2016-10-13 20:17:01 +02:00
Oliver Kowalke
97ce37e8e8 update asio examples 2016-10-10 08:50:10 +02:00
Oliver Kowalke
c9fd43549b remove example work_stealing 2016-05-22 18:15:49 +02:00
Oliver Kowalke
1f81bc2a5f Merge branch 'exp' into develop 2016-05-22 07:20:22 +02:00
Oliver Kowalke
8bd1006634 add random_chase_lev algorithm 2016-05-16 14:25:19 +02:00
Oliver Kowalke
310f3ce2f2 move sched_algorithm to algo::algorithm
- new namesapce algo
- shared_round_robin with shared ready queue
2016-05-13 20:14:48 +02:00
oliver Kowalke
4d47c74911 examples work sharing/stealing: spin in suspend_until()
- no fiber will sleep in both examples
- threads spin in dispatcher-fiber calling sched_algo::suspend_until()
  because thread should not be blocked if no ready fiber is available
2016-05-09 12:00:37 +02:00
oliver Kowalke
19fcdf5d2c fix example adapt_callback: wrap callback+args for C++11 2016-05-03 09:29:27 +02:00
Nat Goodspeed
ff35fc1f25 Flesh out doc for context::attach() and detach() + migration notes. 2016-05-02 15:56:11 -04:00
Nat Goodspeed
f910b356cc Fix spelling of "thief" (stolen h) 2016-05-02 15:03:11 -04:00
Oliver Kowalke
968c32c842 replace context::migrate() by context::attach()/context::detach() 2016-05-02 18:56:17 +02:00
oliver Kowalke
aa3ad60d07 example asio: errors mentioned by clang 2016-05-02 08:19:36 +02:00
Oliver Kowalke
f89e5fc7e8 isoem fixes for example adapt_callback 2016-05-01 19:02:57 +02:00
Nat Goodspeed
0e2f382285 Bind promise with init capture if available, else use std::bind. 2016-05-01 10:33:54 -04:00
Nat Goodspeed
a783ec1356 caught typo 2016-04-29 16:49:10 -04:00
Nat Goodspeed
88f5f06fed Describe updated Fiber / Asio round_robin integration. 2016-04-29 16:26:01 -04:00
Nat Goodspeed
56a3e7a92e Make round_robin::suspend_until() always set asio timer.
This gives notify() something to cancel if need be.

Avoid resetting the timer to the same abs_time, though.
2016-04-29 09:05:20 -04:00
oliver Kowalke
d09eb503b8 example asio/autoecho: run server-fiber detached 2016-04-28 08:15:40 +02:00