Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
k_work_queue_config Struct Reference

A structure holding optional configuration items for a work queue. More...

#include <kernel.h>

Data Fields

const char * name
 
bool no_yield
 

Detailed Description

A structure holding optional configuration items for a work queue.

This structure, and values it references, are not retained by k_work_queue_start().

Field Documentation

◆ name

const char* k_work_queue_config::name

The name to be given to the work queue thread.

If left null the thread will not have a name.

◆ no_yield

bool k_work_queue_config::no_yield

Control whether the work queue thread should yield between items.

Yielding between items helps guarantee the work queue thread does not starve other threads, including cooperative ones released by a work item. This is the default behavior.

Set this to true to prevent the work queue thread from yielding between items. This may be appropriate when a sequence of items should complete without yielding control.


The documentation for this struct was generated from the following file: