Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
|
A structure holding optional configuration items for a work queue. More...
#include <kernel.h>
Data Fields | |
const char * | name |
The name to be given to the work queue thread. | |
bool | no_yield |
Control whether the work queue thread should yield between items. | |
bool | essential |
Control whether the work queue thread should be marked as essential thread. | |
A structure holding optional configuration items for a work queue.
This structure, and values it references, are not retained by k_work_queue_start().
bool k_work_queue_config::essential |
Control whether the work queue thread should be marked as essential thread.
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.
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.