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/09/22 23:13:03 UTC

[GitHub] [incubator-nuttx] patacongo opened a new pull request #1873: Move gettid() implementation to /libs/libc/unistd

patacongo opened a new pull request #1873:
URL: https://github.com/apache/incubator-nuttx/pull/1873


   ## Summary
   
   Move sched/task/task/task_gettid.c to libs/libc/unistd/lib_gettid.c.  gettid() is a dumb wrapper around getpid().  It is wasteful of resources to support TWO systme calls, one for getpid() and one for gettid().  Instead, move gettid() in the C library where it calls the single sysgtem call, getpid().  Much cleaner.
   
   ## Impact
   
   Re-organization only.  There should be no functional change.
   
   ## Testing
   
   The only verification is checking that moved code compiles without error
   
   
   


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



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #1873: Move gettid() implementation to /libs/libc/unistd

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #1873:
URL: https://github.com/apache/incubator-nuttx/pull/1873


   


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



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #1873: Move gettid() implementation to /libs/libc/unistd

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #1873:
URL: https://github.com/apache/incubator-nuttx/pull/1873


   


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