From a4f85408baae4ed6e1df24d3d342da55fbbd3e0c Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 24 Sep 2024 14:20:36 -0600 Subject: add Go-like unbuffered channels --- coroutine.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'coroutine.h') 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 -- cgit v1.2.3-2-g168b