casaroli commented on code in PR #20130:
URL: https://github.com/apache/nuttx/pull/20130#discussion_r4004709843


##########
sched/timer/timer_create.c:
##########
@@ -196,6 +200,18 @@ int timer_create(clockid_t clockid, FAR struct sigevent 
*evp,
               /* Yes, copy the entire struct sigevent content */
 
               memcpy(&ret->pt_event, evp, sizeof(struct sigevent));
+
+#if defined(CONFIG_FDPIC) && defined(CONFIG_SIG_EVTHREAD)
+              /* Capture the module's data base while this runs in its
+               * context.  The callback fires later on a worker that has
+               * none.
+               */
+
+              ret->pt_work.got =
+                (fdpic_base() != 0 &&

Review Comment:
   done



##########
sched/mqueue/mq_notify.c:
##########
@@ -156,6 +160,17 @@ int mq_notify(mqd_t mqdes, FAR const struct sigevent 
*notification)
                  sizeof(struct sigevent));
 
           msgq->ntpid = rtcb->pid;
+
+#if defined(CONFIG_FDPIC) && defined(CONFIG_SIG_EVTHREAD)
+          /* Capture the module's data base while this runs in its
+           * context.  The callback fires later on a worker that has none.
+           */
+
+          msgq->ntwork.got =
+            (fdpic_base() != 0 &&
+             (notification->sigev_notify & SIGEV_THREAD) != 0) ?

Review Comment:
   done



-- 
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]

Reply via email to