sched: merge waitsem and msgwaitq

This commit is contained in:
zhangyuan21
2022-09-22 10:31:40 +08:00
committed by Xiang Xiao
parent 4c44c6f709
commit af72a528f1
10 changed files with 34 additions and 36 deletions
+2 -8
View File
@@ -608,9 +608,9 @@ struct tcb_s
FAR struct dspace_s *dspace; /* Allocated area for .bss and .data */
#endif
/* POSIX Semaphore Control Fields *****************************************/
/* POSIX Semaphore and Message Queue Control Fields ***********************/
sem_t *waitsem; /* Semaphore ID waiting on */
FAR void *waitobj; /* Object thread waiting on */
/* POSIX Signal Control Fields ********************************************/
@@ -620,12 +620,6 @@ struct tcb_s
sq_queue_t sigpostedq; /* List of posted signals */
siginfo_t sigunbinfo; /* Signal info when task unblocked */
/* POSIX Named Message Queue Fields ***************************************/
#ifndef CONFIG_DISABLE_MQUEUE
FAR struct mqueue_inode_s *msgwaitq; /* Waiting for this message queue */
#endif
/* Robust mutex support ***************************************************/
#if !defined(CONFIG_DISABLE_PTHREAD) && !defined(CONFIG_PTHREAD_MUTEX_UNSAFE)