summaryrefslogtreecommitdiff
path: root/libcr/coroutine.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcr/coroutine.c')
-rw-r--r--libcr/coroutine.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/libcr/coroutine.c b/libcr/coroutine.c
index c6eeb43..33e8141 100644
--- a/libcr/coroutine.c
+++ b/libcr/coroutine.c
@@ -21,9 +21,6 @@
#include "config.h"
-#ifndef CONFIG_COROUTINE_DEFAULT_STACK_SIZE
- #error config.h must define CONFIG_COROUTINE_DEFAULT_STACK_SIZE (non-negative integer)
-#endif
#ifndef CONFIG_COROUTINE_NAME_LEN
#error config.h must define CONFIG_COROUTINE_NAME_LEN (non-negative integer)
#endif
@@ -630,11 +627,6 @@ cid_t coroutine_add_with_stack_size(size_t stack_size,
return child;
}
-cid_t coroutine_add(const char *name, cr_fn_t fn, void *args) {
- return coroutine_add_with_stack_size(
- CONFIG_COROUTINE_DEFAULT_STACK_SIZE, name, fn, args);
-}
-
/* coroutine_main() ***********************************************************/
void coroutine_main(void) {
@@ -676,6 +668,7 @@ void coroutine_main(void) {
coroutine_table[coroutine_running-1] = (struct coroutine){0};
coroutine_cnt--;
}
+ coroutine_running = 0;
cr_restore_interrupts(saved);
}