aboutsummaryrefslogtreecommitdiff
path: root/src/process.c
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 02:29:14 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 02:29:14 +0100
commit6b1444aa3918382aba127c16c671f045a3586e53 (patch)
tree08b6b1e55383d63ba4e5824071620a35f737925c /src/process.c
parent2250b4db92bd272dbb1fd717eb791e293c17e37a (diff)
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').
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c6
1 files changed, 3 insertions, 3 deletions
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;