diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-02-21 00:53:45 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-02-21 10:33:20 -0700 |
commit | b5e84c26699d9b2beadf2e44adbd92c2c18b5bfa (patch) | |
tree | b78617e485d06ac5e6fb4cdd7663d81c82f1ba2b /libcr | |
parent | 6639031e15b23d342efb87cc00fa51233d66b392 (diff) |
libcr_ipc: Fixes and tests for sema.h
Diffstat (limited to 'libcr')
-rw-r--r-- | libcr/coroutine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcr/coroutine.c b/libcr/coroutine.c index c6eeb43..39df3d5 100644 --- a/libcr/coroutine.c +++ b/libcr/coroutine.c @@ -676,6 +676,7 @@ void coroutine_main(void) { coroutine_table[coroutine_running-1] = (struct coroutine){0}; coroutine_cnt--; } + coroutine_running = 0; cr_restore_interrupts(saved); } |