casaroli opened a new pull request, #4111: URL: https://github.com/apache/nuttx-apps/pull/4111
depends-on: apache/nuttx/pull/22164 ## Summary A new case of the ostest work queue test, for apache/nuttx#22164: two threads per CPU queue delayed and immediate work on a custom queue and cancel the delayed work, 2000 times each. Half of the threads do it in the critical section. The work queue starts and stops its timer and wakes its workers with the queue locked, and these calls enter the critical section. On SMP NuttX master, a thread in the critical section waits for the queue lock while another CPU holds the queue lock and waits for the critical section, and the test stops. ## Impact Only `testing/ostest/wqueue.c`, in the flat build (the other builds have no `enter_critical_section()` in user space). No new Kconfig option. Without SMP the case runs with two threads. ## Testing qemu-armv8a:nsh under HVF with 4 CPUs: on NuttX master, ostest stops in `wqueue_test: critical section`; with apache/nuttx#22164, ostest ends with status 0. Built for qemu-armv7a:smp and qemu-armv7a:nsh. `tools/checkpatch.sh -c -u -m -g` passes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
