From 1b39473993abcc6180657c8d3bd5f9e12e4bc816 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Fri, 12 Nov 2021 22:58:40 +0100 Subject: Introducing basic RCU primitives for lock-less shared data structures --- lib/coro.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/coro.h') 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 -- cgit v1.2.3