From 149643c5638f39ba03a49b8483921ce53c643a4d Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 13 May 2018 23:35:07 -0700 Subject: libpulp: add pulp_self() current fiber accessor Analogous to pthread_self() --- src/pulp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pulp.h') diff --git a/src/pulp.h b/src/pulp.h index b90b913..6111c80 100644 --- a/src/pulp.h +++ b/src/pulp.h @@ -32,5 +32,6 @@ pulp_fiber_t * pulp_fiber_new(pulp_t *pulp, unsigned delay_ms, thunk_t *thunk); void pulp_msleep(pulp_t *pulp, unsigned milliseconds); void pulp_sleep(pulp_t *pulp, unsigned seconds); pulp_usec_t pulp_now(pulp_t *pulp); +pulp_fiber_t * pulp_self(pulp_t *pulp); #endif -- cgit v1.2.3