From 6b1444aa3918382aba127c16c671f045a3586e53 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 02:29:14 +0100 Subject: Common pipe replaced with sender/receiver functors. [#27] C library now only takes care of relaying data to/from functors, which must be provided by the wrapping application (in this case, a new python module named 'common.py'). --- src/process.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/process.c') diff --git a/src/process.c b/src/process.c index 2b9fff8..eb89a8d 100644 --- a/src/process.c +++ b/src/process.c @@ -1077,7 +1077,7 @@ static void write(uint32 pidx) static void send(uint32 pidx) { - /* Send instruction on given register into the common pipe. + /* Send instruction on given register into the common sender. */ uint32_p reg; assert(g_is_init); @@ -1102,8 +1102,8 @@ static void send(uint32 pidx) static void receive(uint32 pidx) { - /* Receive a single instruction from the common pipe and store it into a - specified register. In case the common pipe is empty, it will return the + /* Receive a single instruction from the common receiver and store it into + a specified register. In case the receiver is unset, it will return the NOP0 instruction. */ uint32_p reg; -- cgit v1.2.1