patacongo commented on issue #6046:
URL:
https://github.com/apache/incubator-nuttx/issues/6046#issuecomment-1096702039
There is a related problem in sched/signal/sig_notification.c. POSIX
requires that signals be able to be delivered on a thread via a callback. If
CONFIG_SIG_EVTHREAD is enabled, then the LP or HP work queue is used to perform
the callback. But the work queues are within the OS and cannot call into
applications.
There is at least some protection for this in sched/Kconfig:
1364 config SIG_EVTHREAD
1365 bool "Support SIGEV_THREAD"
1366 default n
1367 depends on !BUILD_KERNEL && SCHED_WORKQUEUE
1368 select LIBC_USRWORK if BUILD_PROTECTED
1369 ---help---
1370 Built in support for the SIGEV_THREAD signal
deliver method.
1371
1372 NOTE: The current implementation uses a work queue
to notify the
1373 client. This, however, would only work in the FLAT
build. A
1374 different mechanism would need to be development to
support this
1375 feature on the PROTECTED or KERNEL build.
The Kconfig selects the user work queue, but that it not used.
--
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]