task.h 315 B

123456789101112131415161718
  1. #ifndef CX_ZIVUOS_TASK_H_INCLUDED
  2. #define CX_ZIVUOS_TASK_H_INCLUDED
  3. #include "zv_types.h"
  4. #include "state.h"
  5. #include "event.h"
  6. typedef struct zv_task_s {
  7. zv_state_t state;
  8. void *param;
  9. zv_event_t event;
  10. zv_worker_t worker;
  11. zv_priority_t age;
  12. zv_priority_t priority;
  13. } zv_task_t;
  14. #endif