diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2018-11-26 18:42:44 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2018-11-26 18:42:44 -0800 |
commit | b05d46e8582d87cf127ad6346119dc30a0c19153 (patch) | |
tree | e68b000b8c24e1bcebaf3fc9062d43eab33e5885 | |
parent | deb34d3fb4990997101e37f54a334e3f72e77540 (diff) |
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.
-rw-r--r-- | src/pulp.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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; } |