mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 09:08:25 +00:00
[ipc/workqueue.c] delete timer, using list.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
|
||||
#include <rtdef.h>
|
||||
#include <rtconfig.h>
|
||||
#include "completion.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -42,6 +43,7 @@ struct rt_workqueue
|
||||
struct rt_semaphore sem;
|
||||
rt_thread_t work_thread;
|
||||
struct rt_spinlock spinlock;
|
||||
struct rt_completion wakeup_completion;
|
||||
};
|
||||
|
||||
struct rt_work
|
||||
@@ -52,7 +54,7 @@ struct rt_work
|
||||
void *work_data;
|
||||
rt_uint16_t flags;
|
||||
rt_uint16_t type;
|
||||
struct rt_timer timer;
|
||||
rt_tick_t timeout_tick;
|
||||
struct rt_workqueue *workqueue;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user