summaryrefslogtreecommitdiff
path: root/components/legacy/ipc/workqueue_legacy.h
blob: a39cc86669965b30985194c4d54c22bb529b3c9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-11-14     Meco Man     the first version
 */

#ifndef __WORKQUEUE_LEGACY_H__
#define __WORKQUEUE_LEGACY_H__

#include <ipc/workqueue.h>

struct rt_delayed_work
{
    struct rt_work work;
};

void rt_delayed_work_init(struct rt_delayed_work *work,
                          void (*work_func)(struct rt_work *work,
                          void *work_data), void *work_data);

#endif