From f54d6bfcc488b644926b962c230f8f12d0d65646 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sun, 29 Sep 2024 02:35:26 -0600 Subject: libcr: Faster context switches, wait for interrupt --- libcr/include/libcr/coroutine.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libcr/include') diff --git a/libcr/include/libcr/coroutine.h b/libcr/include/libcr/coroutine.h index 47467bd..faaf6c3 100644 --- a/libcr/include/libcr/coroutine.h +++ b/libcr/include/libcr/coroutine.h @@ -96,9 +96,8 @@ cid_t coroutine_add(cr_fn_t fn, void *args); * The main scheduler loop. * * "Should" never return, but will print a message to stderr and - * return if the program has deadlocked and there are no runnable - * coroutines. So be sure to call coroutine_add() at least once - * before calling this. + * return if there are no coroutines (there were no calls to + * coroutine_add(), or all coroutines cr_exit()). */ void coroutine_main(void); -- cgit v1.2.3-2-g168b