Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Infuse-IoT Work Queue API

Infuse-IoT Work Queue API . More...

Functions

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.
 

Variables

struct k_work_q infuse_iot_work_q
 

Detailed Description

Infuse-IoT Work Queue API .

Function Documentation

◆ 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
dworkpointer to the delayable work item.
delaythe 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
dworkpointer to the delayable work item.
delaythe 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
workpointer to the work item.
Returns
as with k_work_submit_to_queue().

Variable Documentation

◆ infuse_iot_work_q

struct k_work_q infuse_iot_work_q
extern

#include <infuse/work_q.h>