__ha_barrier_atomic_store();
/* keep the task counter up to date */
- if (!(t->state & TASK_F_TASKLET))
+ if (!(state & TASK_F_TASKLET))
_HA_ATOMIC_DEC(&ha_thread_ctx[tid].tasks_in_list);
/* From this point, we know that the task or tasklet was properly
if (unlikely((state & TASK_KILLED) || process == NULL)) {
/* Task or tasklet has been killed, let's remove it */
- if (t->state & TASK_F_TASKLET)
+ if (state & TASK_F_TASKLET)
pool_free(pool_head_tasklet, t);
else {
task_unlink_wq(t);
}
/* OK now the task or tasklet is well alive and is going to be run */
- if (t->state & TASK_F_TASKLET) {
+ if (state & TASK_F_TASKLET) {
/* this is a tasklet */
t = process(t, ctx, state);