From f5da707e77ee954b12f3c961012e4f40fa4e1bd3 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Thu, 26 Sep 2024 19:31:05 -0600 Subject: races --- coroutine.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'coroutine.h') diff --git a/coroutine.h b/coroutine.h index 4bdc4f8..4d83181 100644 --- a/coroutine.h +++ b/coroutine.h @@ -114,6 +114,8 @@ void cr_yield(void); void cr_pause_and_yield(void); /** cr_unpause() marks a coroutine as runnable that has previously marked itself as non-runnable with cr_pause_and_yield(). */ void cr_unpause(cid_t); +/** cr_unpause_from_sighandler() is like cr_unpause(), but safe to call from a signal handler that might race with the coroutine actually pausing itself. */ +void cr_unpause_from_sighandler(cid_t); /** cr_end() is a counterpart to cr_begin(), but is really just cr_exit(). */ #define cr_end cr_exit -- cgit v1.2.3-2-g168b