@web-font-path: "roboto-debian.css";
A "worker" instance used by an async_context. More...
#include <async_context.h>

Data Fields | |
| struct async_when_pending_worker * | next |
| private link list pointer | |
| void(* | do_work )(async_context_t *context, struct async_when_pending_worker *worker) |
| Called by the async_context when the worker has been marked as having "work pending". | |
| bool | work_pending |
| True if the worker need do_work called. | |
| void * | user_data |
| User data associated with the worker instance. | |
A "worker" instance used by an async_context.
A "worker" represents some external entity that must do work in response to some external stimulus (usually an IRQ). Its methods are called from the async_context under lock at the given time
| void(* async_when_pending_worker::do_work) (async_context_t *context, struct async_when_pending_worker *worker) |
Called by the async_context when the worker has been marked as having "work pending".
| context | the async_context |
| worker | the function to be called when work is pending |