Commit graph

42 commits

Author SHA1 Message Date
asonix 92fae68ad7 Don't abort on drop, don't close on drop 2023-08-27 17:08:43 -05:00
asonix 69074ee66c Enable aborting tasks 2023-08-27 16:35:22 -05:00
asonix ecd93df1cd Add flake 2023-08-27 15:58:30 -05:00
Aode (lion) 110a919385 Add cooperative one-at-a-time mode 2022-03-07 18:53:50 -06:00
Aode (lion) b5b6c19679 Update io example 2022-03-07 14:28:16 -06:00
Aode (lion) e5c3b2c4bf Remove compat features 2022-03-05 12:58:06 -06:00
Aode (lion) 6d08f179c4 Add feature proxies for asyncread/write 2022-03-03 20:57:16 -06:00
Aode (lion) 41d6bd20cd Update example 2022-03-03 20:38:03 -06:00
Aode (lion) 83986615a0 Add run_with method on Executor to run with a 'main' future 2022-02-16 17:53:54 -05:00
Aode (lion) 29b81cf5b6 Update io example for new bind api 2022-02-16 16:27:49 -05:00
Aode (lion) 0961433814 Use ring buffer for io example 2022-02-16 15:47:43 -05:00
Aode (lion) be7c684367 Use non-blocking io in example 2022-02-16 12:02:34 -05:00
Aode (lion) 4680542d2d Print stopping when stopping 2022-02-15 13:47:46 -06:00
Aode (lion) cf42e0c24b Use foxtrot for io example 2022-02-15 13:36:01 -06:00
Aode (lion) c983ea9d9e Always forward wake 2022-02-15 13:35:27 -06:00
Aode (lion) 72809cf0da Merge branch 'asonix/work-stealing' into main 2022-02-15 12:21:04 -06:00
Aode (lion) 21e79db6d6 Update name 2022-02-15 12:20:16 -06:00
Aode (lion) 2f032f9e13 Check if executor owns waking task before setting woken 2022-02-14 19:29:05 -06:00
Aode (Lion) b1d60cc8cd Remove duplicate spawn definition 2022-02-11 16:09:37 -06:00
Aode (Lion) 72c50bcaf6 Fix demo 2022-02-11 15:40:55 -06:00
Aode (Lion) 4c3edb92cc Panic when spawning on non-running executor, wake threads on stop 2022-02-11 15:40:23 -06:00
Aode (Lion) 5ba4dab3cf Print string repr in io example 2022-02-11 15:15:00 -06:00
Aode (Lion) 9d04b5e700 Remove steal printing 2022-02-11 15:12:19 -06:00
Aode (Lion) fb209c7ff9 Don't deadlock on mutual stealing 2022-02-11 15:11:58 -06:00
Aode (Lion) 5b745553b0 Don't steal entire thread task list for processing 2022-02-11 15:11:32 -06:00
Aode (lion) a1464e2f6f Tick isn't always true 2022-02-11 09:17:29 -06:00
Aode (Lion) 0bc01de384 Try waking after spawn 2022-02-10 22:31:44 -06:00
Aode (Lion) c2600abd06 Start work on work-stealing 2022-02-10 22:25:38 -06:00
Aode (Lion) 2dfe035ee0 Add IO example with async-io 2022-02-07 21:37:08 -06:00
Aode (Lion) deffc857ef Update demo example to use a dummy waker 2022-02-07 21:36:56 -06:00
Aode (Lion) 25d4b61abc Implement Future for Executor, remove lists in favor of VecDeque 2022-02-07 21:36:33 -06:00
Aode (Lion) 0380dc2094 Use oneshot in multi-thread example 2022-01-29 20:59:19 -06:00
Aode (Lion) ec7e40a309 formatting changes 2022-01-29 20:59:10 -06:00
Aode (Lion) 39240b4a50 Fix spawn_count heuristic 2022-01-29 20:48:12 -06:00
Aode (Lion) e145fdc7b8 Print thread id in multi-thread example 2022-01-29 20:27:33 -06:00
Aode (Lion) 28b72a7d60 Add block_on, multi-thread example 2022-01-29 20:26:35 -06:00
Aode (Lion) 3aa0f237b3 Use atomic swap to ensure only 1 wake operation procedes 2022-01-29 17:41:07 -06:00
Aode (Lion) efc736f88d Add comments around task reclaiming to demo 2022-01-29 16:15:23 -06:00
Aode (Lion) 2c4976fba1 Demonstrate task reclaim behavior in example 2022-01-29 16:10:04 -06:00
Aode (Lion) 1e934d7766 Rename 'Node' to 'Task' 2022-01-29 16:09:48 -06:00
Aode (Lion) d7d825a920 Move prune after loop in demo, demonstrates task re-use 2022-01-29 16:01:09 -06:00
Aode (Lion) b046efc0bf It seems to work 2022-01-29 15:50:49 -06:00