summaryrefslogtreecommitdiff
path: root/libcr/include
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-13 15:23:42 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-19 20:15:12 -0700
commit0360ef3a038c8c3f6f252fdc8f1b91e4cbdd4e39 (patch)
tree387fde8b794f059484e300bef5fc1051fb30095c /libcr/include
parent363e741feba2268db9c72215460c627bcc4f33ac (diff)
libcr: Start to add coroutine names
Diffstat (limited to 'libcr/include')
-rw-r--r--libcr/include/libcr/coroutine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcr/include/libcr/coroutine.h b/libcr/include/libcr/coroutine.h
index d673fb6..95f9ba0 100644
--- a/libcr/include/libcr/coroutine.h
+++ b/libcr/include/libcr/coroutine.h
@@ -84,13 +84,13 @@ typedef void (*cr_fn_t)(void *args);
* Returns the cid of the newly-created coroutine. May return 0 if
* there are already COROUTINE_NUM active coroutines.
*/
-cid_t coroutine_add_with_stack_size(size_t stack_size, cr_fn_t fn, void *args);
+cid_t coroutine_add_with_stack_size(size_t stack_size, const char *name, cr_fn_t fn, void *args);
/**
* Like coroutine_add_with_stack_size(), but uses a default stack size so
* you don't need to think about it.
*/
-cid_t coroutine_add(cr_fn_t fn, void *args);
+cid_t coroutine_add(const char *name, cr_fn_t fn, void *args);
/**
* The main scheduler loop.