diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-24 14:20:36 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-24 14:22:09 -0600 |
commit | a4f85408baae4ed6e1df24d3d342da55fbbd3e0c (patch) | |
tree | afb420a45fec59ba7b00cf8411a06a625489d719 /coroutine.h | |
parent | d282266beb71bfb9b21cf00f3025c01df7dd8e4d (diff) |
add Go-like unbuffered channels
Diffstat (limited to 'coroutine.h')
-rw-r--r-- | coroutine.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/coroutine.h b/coroutine.h index 4b16b1f..d02d0f9 100644 --- a/coroutine.h +++ b/coroutine.h @@ -19,6 +19,9 @@ * * See also: coroutine_rpc.h is a request/response system built on top * of coroutine.{h,c}. + * + * See also: coroutine_chan.h is a 1-way channel system built on top + * of coroutine.{h,c}. */ #ifndef _COROUTINE_H_ #define _COROUTINE_H_ @@ -66,7 +69,7 @@ typedef size_t cid_t; * Specifically, coroutine_add() and * cr_{yield,pause_and_yield,exit,end}() are explicitly forbidden to * call from within a coroutine before cr_begin() (note that the - * cr_rpc_*() macros call these functions). + * cr_rpc_*() and cr_chan_*() macros call these functions). */ typedef void (*cr_fn_t)(void *args); #define COROUTINE __attribute__ ((noreturn)) void |