pussuw commented on code in PR #11165: URL: https://github.com/apache/nuttx/pull/11165#discussion_r1390933827
########## sched/tls/tls_initinfo.c: ########## @@ -66,5 +70,17 @@ int tls_init_info(FAR struct tcb_s *tcb) /* Attach per-task info in group to TLS */ info->tl_task = tcb->group->tg_info; + + /* Initialize cancellation state */ + +#ifdef CONFIG_CANCELLATION_POINTS + /* Set the deferred cancellation type */ + + info->tl_cpstate |= CANCEL_FLAG_CANCEL_DEFERRED; + info->tl_cpcount = 0; /* REVISIT: Remove this */ Review Comment: Can you please clarify what is not needed ? The comment ? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org