Files
mkrtos-real/mkrtos_knl/inc/knl/sleep.h

15 lines
346 B
C
Raw Normal View History

#pragma
#include "thread.h"
typedef struct thread_wait_entry
{
slist_head_t node;
thread_t *th;
umword_t times;
2025-03-09 23:53:18 +08:00
umword_t times_debug;
} thread_wait_entry_t;
void thread_check_timeout(void);
thread_wait_entry_t *thread_sleep_del(thread_t *th);
void thread_sleep_del_and_wakeup(thread_t *th);
umword_t thread_sleep(umword_t tick);