7#ifndef ZEPHYR_KERNEL_INCLUDE_TIMEOUT_Q_H_
8#define ZEPHYR_KERNEL_INCLUDE_TIMEOUT_Q_H_
23#ifdef CONFIG_SYS_CLOCK_EXISTS
25static inline void z_init_timeout(
struct _timeout *to)
30void z_add_timeout(
struct _timeout *to, _timeout_func_t fn,
33int z_abort_timeout(
struct _timeout *to);
35static inline bool z_is_inactive_timeout(
const struct _timeout *to)
40static inline void z_init_thread_timeout(
struct _thread_base *thread_base)
42 z_init_timeout(&thread_base->timeout);
45extern void z_thread_timeout(
struct _timeout *
timeout);
49 z_add_timeout(&
thread->
base.timeout, z_thread_timeout, ticks);
57int32_t z_get_next_timeout_expiry(
void);
59void z_set_timeout_expiry(
int32_t ticks,
bool is_idle);
66#define z_init_thread_timeout(thread_base) do {} while (false)
67#define z_abort_thread_timeout(to) (0)
68#define z_is_inactive_timeout(to) 0
69#define z_get_next_timeout_expiry() ((int32_t) K_TICKS_FOREVER)
70#define z_set_timeout_expiry(ticks, is_idle) do {} while (false)
static struct k_thread thread[2]
Definition: atomic.c:22
ZTEST_BMEM int timeout
Definition: main.c:31
uint32_t k_ticks_t
Tick precision used in timeout APIs.
Definition: sys_clock.h:48
static bool sys_dnode_is_linked(const sys_dnode_t *node)
check if a node is a member of any list
Definition: dlist.h:229
static void sys_dnode_init(sys_dnode_t *node)
initialize node to its state when not in a list
Definition: dlist.h:215
__INT32_TYPE__ int32_t
Definition: stdint.h:44
struct _thread_base base
Definition: thread.h:203
Kernel timeout type.
Definition: sys_clock.h:65