Infuse-IoT Work Queue API .
More...
|
static int | infuse_work_submit (struct k_work *work) |
| Submit a work item to the Infuse-IoT queue.
|
|
static int | infuse_work_schedule (struct k_work_delayable *dwork, k_timeout_t delay) |
| Submit an idle work item to the Infuse-IoT work queue after a delay.
|
|
static int | infuse_work_reschedule (struct k_work_delayable *dwork, k_timeout_t delay) |
| Reschedule a work item to the Infuse-IoT work queue after a delay.
|
|
Infuse-IoT Work Queue API .
◆ infuse_work_reschedule()
static int infuse_work_reschedule |
( |
struct k_work_delayable * | dwork, |
|
|
k_timeout_t | delay ) |
|
inlinestatic |
#include <infuse/work_q.h>
Reschedule a work item to the Infuse-IoT work queue after a delay.
This is a thin wrapper around k_work_reschedule_for_queue(), with all the API characteristics of that function.
- Parameters
-
dwork | pointer to the delayable work item. |
delay | the time to wait before submitting the work item. |
- Returns
- as with k_work_reschedule_for_queue().
◆ infuse_work_schedule()
static int infuse_work_schedule |
( |
struct k_work_delayable * | dwork, |
|
|
k_timeout_t | delay ) |
|
inlinestatic |
#include <infuse/work_q.h>
Submit an idle work item to the Infuse-IoT work queue after a delay.
This is a thin wrapper around k_work_schedule_for_queue(), with all the API characteristics of that function.
- Parameters
-
dwork | pointer to the delayable work item. |
delay | the time to wait before submitting the work item. If K_NO_WAIT this is equivalent to k_work_submit_to_queue(). |
- Returns
- as with k_work_schedule_for_queue().
◆ infuse_work_submit()
static int infuse_work_submit |
( |
struct k_work * | work | ) |
|
|
inlinestatic |
#include <infuse/work_q.h>
Submit a work item to the Infuse-IoT queue.
- Parameters
-
work | pointer to the work item. |
- Returns
- as with k_work_submit_to_queue().
◆ infuse_iot_work_q
struct k_work_q infuse_iot_work_q |
|
extern |