workqueue_legacy.h 547 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-11-14 Meco Man the first version
  9. */
  10. #ifndef __WORKQUEUE_LEGACY_H__
  11. #define __WORKQUEUE_LEGACY_H__
  12. #include <ipc/workqueue.h>
  13. struct rt_delayed_work
  14. {
  15. struct rt_work work;
  16. };
  17. void rt_delayed_work_init(struct rt_delayed_work *work,
  18. void (*work_func)(struct rt_work *work,
  19. void *work_data), void *work_data);
  20. #endif