diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-17 12:24:12 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-17 12:24:12 -0600 |
commit | 0cf05b66f94bfe02ecca37a4cbafba25b27c32ae (patch) | |
tree | 655833226ddb7973edb1d1967a7ce77ef16d7517 /libcr_ipc/tests/test_mutex.c | |
parent | 29ad1efc7c6de44a965db9f181165b72a9ef8ff1 (diff) | |
parent | cc7697baae812850b0b9262bc1b3cb303c6a2adf (diff) |
Merge branch 'lukeshu/libcr-debug-qol'
Diffstat (limited to 'libcr_ipc/tests/test_mutex.c')
-rw-r--r-- | libcr_ipc/tests/test_mutex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcr_ipc/tests/test_mutex.c b/libcr_ipc/tests/test_mutex.c index 43714c9..d08315d 100644 --- a/libcr_ipc/tests/test_mutex.c +++ b/libcr_ipc/tests/test_mutex.c @@ -11,7 +11,7 @@ int counter = 0; -COROUTINE cr_worker(void *_mu) { +COROUTINE worker_cr(void *_mu) { cr_mutex_t *mu = _mu; cr_begin(); @@ -29,8 +29,8 @@ COROUTINE cr_worker(void *_mu) { int main() { cr_mutex_t mu = {}; - coroutine_add("a", cr_worker, &mu); - coroutine_add("b", cr_worker, &mu); + coroutine_add("a", worker_cr, &mu); + coroutine_add("b", worker_cr, &mu); coroutine_main(); test_assert(counter == 200); return 0; |