summaryrefslogtreecommitdiff
path: root/lib/coro.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2021-11-12 22:58:40 +0100
committerMaria Matejka <mq@ucw.cz>2021-11-22 19:05:44 +0100
commit1b39473993abcc6180657c8d3bd5f9e12e4bc816 (patch)
treed7838d29bb29c53f4116a229b5a9758d0f5e22a6 /lib/coro.h
parentadf37d8eff8f281871295c402a51ae1dd654851c (diff)
Introducing basic RCU primitives for lock-less shared data structures
Diffstat (limited to 'lib/coro.h')
-rw-r--r--lib/coro.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/coro.h b/lib/coro.h
index 17ccff89..b36f1d2c 100644
--- a/lib/coro.h
+++ b/lib/coro.h
@@ -25,5 +25,7 @@ struct coroutine *coro_run(pool *, void (*entry)(void *), void *data);
/* Get self. */
extern _Thread_local struct coroutine *this_coro;
+/* Just wait for a little while. Not intended for general use; use events if possible. */
+void coro_yield(void);
#endif