mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-06 11:50:37 +08:00

Summary: following the change in the nuttx kernel, implement the right semantics: 1. getpid should return the main thread id 2. gettid should return the current thread id Refer: https://github.com/apache/incubator-nuttx/issues/2499 https://github.com/apache/incubator-nuttx/pull/2518 Nuttx Kernel PR: https://github.com/apache/incubator-nuttx/pull/7597 update apps code Testing PASSED with qemu( 32/64 ) Signed-off-by: qinwei1 <qinwei1@xiaomi.com>