From b05d46e8582d87cf127ad6346119dc30a0c19153 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 26 Nov 2018 18:42:44 -0800 Subject: libpulp: always keep the fiber's thunk around This used to only happen on __WIN32__ builds, but in preparation of supporting checking if a fiber is running a specific thunk, make this unconditional. --- src/pulp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/pulp.c b/src/pulp.c index 7972dac..6b4c9f4 100644 --- a/src/pulp.c +++ b/src/pulp.c @@ -80,9 +80,7 @@ typedef struct pulp_fiber_t { } state; pulp_context_t context; -#ifdef __WIN32__ thunk_t *thunk; -#endif } pulp_fiber_t; typedef struct pulp_fiber_alloc_t { @@ -570,9 +568,7 @@ pulp_fiber_t * pulp_fiber_new(pulp_t *pulp, unsigned delay_ms, thunk_t *thunk) list_move_tail(&fiber->fibers, &pulp->fibers.sleep); } -#ifdef __WIN32__ fiber->thunk = thunk; -#endif return fiber; } -- cgit v1.2.3