Add user_data to async_when_pending_worker_t. (#1384)

Fixes #1382
This commit is contained in:
Peter Harper 2023-05-22 15:14:11 +01:00 committed by GitHub
parent 62201a83e2
commit 257959bc07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,6 +138,10 @@ typedef struct async_when_pending_worker {
* True if the worker need do_work called
*/
bool work_pending;
/*!
* User data associated with the worker instance
*/
void *user_data;
} async_when_pending_worker_t;
#define ASYNC_CONTEXT_FLAG_CALLBACK_FROM_NON_IRQ 0x1