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 <walsh.benj@gmail.com>
This commit is contained in:
Benjamin Walsh 2017-01-28 16:56:18 -05:00 committed by Anas Nashif
parent 0de9487351
commit fcdb0fd6ea

View file

@ -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