mirror of
https://github.com/apache/nuttx.git
synced 2026-09-06 08:56:32 +00:00
Prevent work_queue_free() from destroying predefined queues or freeing a custom queue from one of its own callbacks. Mark teardown under the queue lock, reject new submissions, return pending work to its owner, and wait for every worker before releasing queue resources. Clean up partially created worker pools, reject invalid delays, safely replace pending periodic work, and make synchronous cancellation wait for every concurrent callback using the same work structure. Tested on an STM32H7 PX4 FMUv6C with the matching ostest suite in Flat and Protected kernel builds. Assisted-by: Codex:GPT-5 Signed-off-by: DuoYuWang <thirteenking.wang@gmail.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| kwork_cancel.c | ||
| kwork_inherit.c | ||
| kwork_notifier.c | ||
| kwork_queue.c | ||
| kwork_thread.c | ||
| Make.defs | ||
| wqueue.h | ||