From fcdb0fd6eaeb4fc6ab9ba7ce8a9f217b97d343e8 Mon Sep 17 00:00:00 2001 From: Benjamin Walsh Date: Sat, 28 Jan 2017 16:56:18 -0500 Subject: [PATCH] kernel: add _WAIT_Q_INIT() Dissociate wait queue initialization from doubly-linked lists if the underlying implementation is to be abstracted. Change-Id: Id7544c6ac506643437f9c4f0ae97e7eecab8d06d Signed-off-by: Benjamin Walsh --- kernel/include/wait_q.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/include/wait_q.h b/kernel/include/wait_q.h index 0637a96e408..7a28aedd7e3 100644 --- a/kernel/include/wait_q.h +++ b/kernel/include/wait_q.h @@ -42,6 +42,8 @@ static ALWAYS_INLINE int _abort_thread_timeout(struct k_thread *thread) #define _get_next_timeout_expiry() (K_FOREVER) #endif +#define _WAIT_Q_INIT(wait_q) SYS_DLIST_STATIC_INIT(wait_q) + #ifdef __cplusplus } #endif