Skip to content

Commit

Permalink
examples/thttpd: Remove TCB_FLAG_CANCEL stuff
Browse files Browse the repository at this point in the history
The flags are removed from kernel side
  • Loading branch information
pussuw authored and xiaoxiang781216 committed Nov 11, 2023
1 parent 07bbbd5 commit f32b4c7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/thttpd/content/tasks/tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,13 @@ void show_task(FAR struct tcb_s *tcb, FAR void *arg)
policy = g_policynames[(tcb->flags & TCB_FLAG_POLICY_MASK) >>
TCB_FLAG_POLICY_SHIFT];
#if CONFIG_TASK_NAME_SIZE > 0
printf("%5d %3d %4s %7s%c%c %8s %s\n",
printf("%5d %3d %4s %7s %8s %s\n",
#else
printf("%5d %3d %4s %7s%c%c %8s\n",
printf("%5d %3d %4s %7s %8s\n",
#endif
tcb->pid, tcb->sched_priority, policy,
g_ttypenames[(tcb->flags & TCB_FLAG_TTYPE_MASK) >>
TCB_FLAG_TTYPE_SHIFT],
tcb->flags & TCB_FLAG_NONCANCELABLE ? 'N' : ' ',
tcb->flags & TCB_FLAG_CANCEL_PENDING ? 'P' : ' ',
g_statenames[tcb->task_state]
#if CONFIG_TASK_NAME_SIZE > 0
, tcb->name
Expand Down

0 comments on commit f32b4c7

Please sign in to comment.