summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-11-26 18:42:44 -0800
committerVito Caputo <vcaputo@pengaru.com>2018-11-26 18:42:44 -0800
commitb05d46e8582d87cf127ad6346119dc30a0c19153 (patch)
treee68b000b8c24e1bcebaf3fc9062d43eab33e5885
parentdeb34d3fb4990997101e37f54a334e3f72e77540 (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.c4
1 files changed, 0 insertions, 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;
}
© All Rights Reserved