From 257959bc07483b2dc2520d5e7e1f97b70f7f73af Mon Sep 17 00:00:00 2001 From: Peter Harper <77111776+peterharperuk@users.noreply.github.com> Date: Mon, 22 May 2023 15:14:11 +0100 Subject: [PATCH] Add user_data to async_when_pending_worker_t. (#1384) Fixes #1382 --- .../pico_async_context/include/pico/async_context.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rp2_common/pico_async_context/include/pico/async_context.h b/src/rp2_common/pico_async_context/include/pico/async_context.h index 271a848d..bbf5e4a0 100644 --- a/src/rp2_common/pico_async_context/include/pico/async_context.h +++ b/src/rp2_common/pico_async_context/include/pico/async_context.h @@ -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