mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
sched/pthread/join: remove unused joininfo
remove unused joininfo, minor issue found from code reading Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
@@ -714,7 +714,6 @@ struct pthread_tcb_s
|
|||||||
|
|
||||||
pthread_trampoline_t trampoline; /* User-space pthread startup function */
|
pthread_trampoline_t trampoline; /* User-space pthread startup function */
|
||||||
pthread_addr_t arg; /* Startup argument */
|
pthread_addr_t arg; /* Startup argument */
|
||||||
FAR void *joininfo; /* Detach-able info to support join */
|
|
||||||
bool join_complete; /* Join was completed */
|
bool join_complete; /* Join was completed */
|
||||||
};
|
};
|
||||||
#endif /* !CONFIG_DISABLE_PTHREAD */
|
#endif /* !CONFIG_DISABLE_PTHREAD */
|
||||||
|
|||||||
@@ -82,8 +82,6 @@ int pthread_createjoininfo(FAR struct pthread_tcb_s *ptcb,
|
|||||||
|
|
||||||
/* Attach the join info to the TCB. */
|
/* Attach the join info to the TCB. */
|
||||||
|
|
||||||
ptcb->joininfo = (FAR void *)(*pjoin);
|
|
||||||
|
|
||||||
(*pjoin)->next = NULL;
|
(*pjoin)->next = NULL;
|
||||||
if (!group->tg_jointail)
|
if (!group->tg_jointail)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user