nuttx/sched/task
qinwei1 8021dfece6 sched/task/task_getpid: getpid should return process id not thread id
Summary:
   implement the right semantics:
1. getpid should return the main thread id
2. gettid should return the current thread id

Refer to:
 https://github.com/apache/incubator-nuttx/issues/2499
 https://github.com/apache/incubator-nuttx/pull/2518

Signed-off-by: qinwei1 <qinwei1@xiaomi.com>
2022-11-17 17:58:08 +08:00
..
exit.c sched: Move the call of pthread_mutex_inconsistent to nxtask_recover 2022-05-27 09:39:09 +03:00
Make.defs sched/Makefile: move task_reparent.c to appropriate Makefile 2022-07-27 23:22:37 +08:00
spawn.h Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
task_activate.c sched: Change the return type of nxtask_activate to void 2020-06-04 22:20:45 +01:00
task_cancelpt.c sched/mqueue: make mqueue and mqueue sysv can disable separately 2022-11-16 20:03:40 +08:00
task_create.c sched/spawn: Support task_spawnattr_[set|get]stackaddr 2022-10-31 12:46:58 +09:00
task_delete.c sched: Remove task_delete in case of CONFIG_BUILD_KERNEL 2022-05-12 03:27:25 +08:00
task_execve.c sched/task: Implement execle and execve 2022-04-22 10:40:31 +03:00
task_exit.c Fix typos reported by codespell 2021-02-25 11:31:49 -08:00
task_exithook.c sched/task/task_getpid: getpid should return process id not thread id 2022-11-17 17:58:08 +08:00
task_getgroup.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_getpid.c sched/task/task_getpid: getpid should return process id not thread id 2022-11-17 17:58:08 +08:00
task_getppid.c pid_t: unify usage of special task IDs 2022-03-22 21:22:32 +08:00
task_gettid.c sched: Don't forward gettid to getpid directly 2021-03-04 17:17:41 -06:00
task_init.c libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
task_posixspawn.c sched/spawn: Launch nxposix_spawn_proxy through nxthread_create 2022-10-19 08:22:56 +09:00
task_prctl.c prctl: Replace strncpy with strlcpy for safety 2022-08-24 01:54:53 +08:00
task_recover.c sched/mqueue: make mqueue and mqueue sysv can disable separately 2022-11-16 20:03:40 +08:00
task_reparent.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
task_restart.c sched/semaphore: fix priority boost restoration for priority inheritance 2022-10-03 15:14:24 -03:00
task_setcancelstate.c Revert "libc: Call pthread_exit in user-space by up_pthread_exit" 2022-02-09 21:21:43 +08:00
task_setcanceltype.c Revert "libc: Call pthread_exit in user-space by up_pthread_exit" 2022-02-09 21:21:43 +08:00
task_setup.c sched: Remove the unnecessary "FAR dq_queue_t *" cast 2022-08-31 08:50:57 +09:00
task_spawn.c sched/spawn: Rename task_spawnattr_[get|set]stack[size|addr] to posix_spawnattr_[get|set]stack[size|addr] 2022-11-01 09:51:18 +09:00
task_spawnparms.c use SEM_INITIALIZER inside of NXSEM_INITIALIZER 2022-10-22 14:50:48 +08:00
task_start.c libc/tls: Make tls_get_info as the pulibc function instead up_tls_info 2022-06-03 23:56:50 +03:00
task_starthook.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
task_terminate.c sched: semaphore wait list optimize 2022-09-28 18:08:37 +08:00
task_testcancel.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_tls_alloc.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
task_vfork.c libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
task.h sched/posix_spawn: Don't insert name at the begin of argv 2021-06-15 07:32:33 -06:00