This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit d313248a5b316a339d072c43e891b3df59969c16 Author: ligd <[email protected]> AuthorDate: Sun Jun 25 11:15:47 2023 +0800 queue: add dq_inqueue & sq_inqueue support Signed-off-by: ligd <[email protected]> --- include/nuttx/queue.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/nuttx/queue.h b/include/nuttx/queue.h index 80b2a04acd..02ee018f5d 100644 --- a/include/nuttx/queue.h +++ b/include/nuttx/queue.h @@ -264,6 +264,11 @@ #define sq_tail(q) ((q)->tail) #define dq_tail(q) ((q)->tail) +#define sq_inqueue(p, q) \ + ((p)->flink || sq_tail(q) == (p)) +#define dq_inqueue(p, q) \ + ((p)->flink || dq_tail(q) == (p)) + /**************************************************************************** * Public Type Definitions ****************************************************************************/
