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 2020/12/11 13:24:04 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #2518: sched: Implement getpid and gettid correctly

xiaoxiang781216 commented on pull request #2518:
URL: https://github.com/apache/incubator-nuttx/pull/2518#issuecomment-743190424


   > This line in pthread.h needs to change too:
   > 
   > #define pthread_self() ((pthread_t)getpid())
   > 
   > Please review all uses of getpid() in the OS and make sure that the calls still make sense. In most cases, getpid() will need to be replaces with gettid() or pthread_self().
   
   Yes, I will review all place and ensure all usage is correct.


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

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