331 Commits

Author SHA1 Message Date
權少 c9ee717862 fix: replace deprecated asio API. 2026-06-14 13:07:58 +08:00
Mateusz Jakub Fila 5edb802dce fix CUDA header for runtime api 2026-01-29 14:15:49 +01:00
Rene Rivera eafb83ae82 Make the library modular usable. 2024-03-11 08:38:17 -05:00
Tianqi 938f816976 fix parameter name in asio example 2021-03-11 20:22:57 +08:00
Oliver Kowalke 4bcaab579c -fsplit-stack flag with GCC 2020-06-26 17:55:47 +02:00
Martin Rückl bd2afc016a asio examples: use post free function over deprecated io_context method 2020-05-07 10:43:53 +02:00
Martin Rückl f067c0fc1b asio examples: use io_context instead of deprecated io_service 2020-05-07 10:43:53 +02:00
niekbouman 39253fac23 Fix issue #201: asio handler type deprecation
Fixes issue #201: 
related to a deprecation of handler_type in Asio since v1.70 
files changed: detail/yield.hpp

Fix inspired by Warchant
2020-01-11 19:30:14 +01:00
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