summaryrefslogtreecommitdiff
path: root/libcr_ipc/tests/test_chan.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-17 12:24:12 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-17 12:24:12 -0600
commit0cf05b66f94bfe02ecca37a4cbafba25b27c32ae (patch)
tree655833226ddb7973edb1d1967a7ce77ef16d7517 /libcr_ipc/tests/test_chan.c
parent29ad1efc7c6de44a965db9f181165b72a9ef8ff1 (diff)
parentcc7697baae812850b0b9262bc1b3cb303c6a2adf (diff)
Merge branch 'lukeshu/libcr-debug-qol'
Diffstat (limited to 'libcr_ipc/tests/test_chan.c')
-rw-r--r--libcr_ipc/tests/test_chan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcr_ipc/tests/test_chan.c b/libcr_ipc/tests/test_chan.c
index e5d9dc8..4788dd4 100644
--- a/libcr_ipc/tests/test_chan.c
+++ b/libcr_ipc/tests/test_chan.c
@@ -11,7 +11,7 @@
CR_CHAN_DECLARE(intchan, int);
-COROUTINE cr_producer(void *_ch) {
+COROUTINE producer_cr(void *_ch) {
intchan_t *ch = _ch;
cr_begin();
@@ -26,7 +26,7 @@ COROUTINE cr_producer(void *_ch) {
cr_end();
}
-COROUTINE cr_consumer(void *_ch) {
+COROUTINE consumer_cr(void *_ch) {
int x;
intchan_t *ch = _ch;
cr_begin();
@@ -42,8 +42,8 @@ COROUTINE cr_consumer(void *_ch) {
int main() {
intchan_t ch = {0};
- coroutine_add("producer", cr_producer, &ch);
- coroutine_add("consumer", cr_consumer, &ch);
+ coroutine_add("producer", producer_cr, &ch);
+ coroutine_add("consumer", consumer_cr, &ch);
coroutine_main();
return 0;
}