del old ipc code && sema support timeout
This commit is contained in:
13
mkrtos_knl/inc/knl/sleep.h
Normal file
13
mkrtos_knl/inc/knl/sleep.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma
|
||||
|
||||
#include "thread.h"
|
||||
typedef struct thread_wait_entry
|
||||
{
|
||||
slist_head_t node;
|
||||
thread_t *th;
|
||||
umword_t times;
|
||||
} 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);
|
||||
Reference in New Issue
Block a user