anchao commented on PR #17352: URL: https://github.com/apache/nuttx/pull/17352#issuecomment-3557877706
> > When signals are disabled, the related POSIX APIs—including sleep, usleep, kill, pkill, and pthread—will be disabled as well. > > It's too limit that sleep/usleep can't be called when CONFIG_DISABLE_SIGNALS equals true, so I would suggest that this feature should be done by level: > > 1. disable all signal related functionality like this pr > 2. disable signal function related to signal handler(callback), but keep other simple but frequnctly used function(e.g. wait/sigwait/ppoll). > 3. enable all signal functionality like before Yes, for example, sleep/usleep can be implemented internally as signal uninterruptible , and all API semantics can remain the same as before, except that it lacks the signal feature. -- 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]
