fs/mqueue: skip nxmq_pollnotify() if no poll waiters
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
f5d4571abc
commit
2fa7ebc18f
@ -370,6 +370,7 @@ static mqd_t nxmq_vopen(FAR const char *mq_name, int oflags, va_list ap)
|
|||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#if CONFIG_FS_MQUEUE_NPOLLWAITERS > 0
|
||||||
void nxmq_pollnotify(FAR struct mqueue_inode_s *msgq, pollevent_t eventset)
|
void nxmq_pollnotify(FAR struct mqueue_inode_s *msgq, pollevent_t eventset)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@ -395,6 +396,7 @@ void nxmq_pollnotify(FAR struct mqueue_inode_s *msgq, pollevent_t eventset)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: file_mq_open
|
* Name: file_mq_open
|
||||||
|
@ -417,7 +417,11 @@ int nxmq_alloc_msgq(FAR struct mq_attr *attr,
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#if CONFIG_FS_MQUEUE_NPOLLWAITERS > 0
|
||||||
void nxmq_pollnotify(FAR struct mqueue_inode_s *msgq, pollevent_t eventset);
|
void nxmq_pollnotify(FAR struct mqueue_inode_s *msgq, pollevent_t eventset);
|
||||||
|
#else
|
||||||
|
# define nxmq_pollnotify(msgq, eventset)
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: file_mq_open
|
* Name: file_mq_open
|
||||||
|
Loading…
Reference in New Issue
Block a user