summaryrefslogtreecommitdiff
path: root/libcr/include
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-29 02:35:26 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-29 02:45:57 -0600
commitf54d6bfcc488b644926b962c230f8f12d0d65646 (patch)
tree0fa5a0048942e045beefecfb925d2a12d6148d65 /libcr/include
parent3d92a162cd6e0e9f941795dfadbd85f491a72a33 (diff)
libcr: Faster context switches, wait for interrupt
Diffstat (limited to 'libcr/include')
-rw-r--r--libcr/include/libcr/coroutine.h5
1 files changed, 2 insertions, 3 deletions
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);