A "worker" instance used by an async_context. More...
#include <async_context.h>
Data Fields | |
struct async_when_pending_worker * | next |
void(* | do_work )(async_context_t *context, struct async_when_pending_worker *worker) |
bool | work_pending |
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). It's 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 |
struct async_when_pending_worker* async_when_pending_worker::next |
private link list pointer
bool async_when_pending_worker::work_pending |
True if the worker need do_work called