You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/04/01 10:29:12 UTC
[GitHub] [incubator-nuttx] pkarashchenko commented on a change in pull request #5931: fix: pthread_rwlock_timedwrlock.
pkarashchenko commented on a change in pull request #5931:
URL: https://github.com/apache/incubator-nuttx/pull/5931#discussion_r840448377
##########
File path: sched/signal/sig_dispatch.c
##########
@@ -424,7 +424,18 @@ int nxsig_tcbdispatch(FAR struct tcb_s *stcb, siginfo_t *info)
if (stcb->task_state == TSTATE_WAIT_SEM)
{
+#ifndef CONFIG_DISABLE_PTHREAD
+ if (info->si_signo == SIGCONDTIMEDOUT)
+ {
+ nxsem_wait_irq(stcb, ETIMEDOUT);
+ }
+ else
+ {
+ nxsem_wait_irq(stcb, EINTR);
Review comment:
This looks like a hack trying to overcome a gap in design. I need some more time to think on it. Please hold on with merging of this PR.
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org