xiaoxiang781216 commented on code in PR #16334:
URL: https://github.com/apache/nuttx/pull/16334#discussion_r2078074826


##########
libs/libc/signal/sig_raise.c:
##########
@@ -45,5 +45,5 @@
 
 int raise(int signo)
 {
-  return tkill(_SCHED_GETTID(), signo);
+  return tgkill(_SCHED_GETPID(), _SCHED_GETTID(), signo);

Review Comment:
   can we save _SCHED_GETPID to local variable? getpid is very time consume in 
protected and kernel build



-- 
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-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to