nuttx/sched/task
Xiang Xiao 6a3c2aded6 Fix wait loop and void cast (#24)
* Simplify EINTR/ECANCEL error handling

1. Add semaphore uninterruptible wait function
2 .Replace semaphore wait loop with a single uninterruptible wait
3. Replace all sem_xxx to nxsem_xxx

* Unify the void cast usage

1. Remove void cast for function because many place ignore the returned value witout cast
2. Replace void cast for variable with UNUSED macro
2020-01-02 10:54:43 -06:00
..
exit.c This commit renames all internal OS functions defined under sched/task so that they begin with the prefix. For example, nxtask_exit() vs. task_exit(). 2019-02-04 13:42:51 -06:00
Make.defs Add task_testcancel() 2016-12-10 16:34:14 -06:00
spawn.h Squashed commit of the following: 2017-10-03 15:35:24 -06:00
task_activate.c This commit renames all internal OS functions defined under sched/task so that they begin with the prefix. For example, nxtask_exit() vs. task_exit(). 2019-02-04 13:42:51 -06:00
task_atexit.c tools/nxstyle.c: Fix logic that detects if an operator is correctly delimited with spaces. sched/: Various changes because sched/ C files were used as Guinea Pigs to test nstyle.c. 2019-03-01 10:50:02 -06:00
task_cancelpt.c Squashed commit of the following: 2019-04-29 14:52:05 -06:00
task_create.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
task_delete.c Fix minor typos in docs and comments. 2019-09-29 12:52:20 -06:00
task_execv.c tools/nxstyle.c: Add logic to detect if there is a blank line following the final right brace. sched/: Applied the modified nxstyle to all C file as a test. 2019-10-24 11:02:42 -06:00
task_exit.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
task_exithook.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
task_getgroup.c CONFIG_NFILE_DESCRIPTORS=0 can no longer be used to disable the file system. NuttX with no file system does not make sense. 2019-02-11 12:09:26 -06:00
task_getpid.c Some cosmetic updates, mostly to spacing and comments. 2018-12-30 11:58:19 -06:00
task_init.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
task_onexit.c tools/nxstyle.c: Fix logic that detects if an operator is correctly delimited with spaces. sched/: Various changes because sched/ C files were used as Guinea Pigs to test nstyle.c. 2019-03-01 10:50:02 -06:00
task_posixspawn.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
task_prctl.c sched/signal/sig_initialize.c: Add some checks for allocation failures. 2019-09-23 07:49:21 -06:00
task_recover.c This commit renames all internal OS functions defined under sched/task so that they begin with the prefix. For example, nxtask_exit() vs. task_exit(). 2019-02-04 13:42:51 -06:00
task_reparent.c sched/: Correct some naming. The NuttX task groups have been using the acroynum 'gid' and also the type 'gid_t' for the the task group ID. That is incorrect. Than naming is reserved for use with group permissions. So these were all named to grpid and grpid_t so that it is clearer that these refer to NuttX task group IDs, and not to group permissions. 2019-08-02 10:01:30 -06:00
task_restart.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
task_setcancelstate.c This commit renames all internal OS functions defined under sched/task so that they begin with the prefix. For example, nxtask_exit() vs. task_exit(). 2019-02-04 13:42:51 -06:00
task_setcanceltype.c sched/: Various fixes for typos, improved parameter verification. 2018-01-12 18:26:45 -06:00
task_setup.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
task_spawn.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
task_spawnparms.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
task_start.c This commit renames all internal OS functions defined under sched/task so that they begin with the prefix. For example, nxtask_exit() vs. task_exit(). 2019-02-04 13:42:51 -06:00
task_starthook.c This commit renames all internal OS functions defined under sched/task so that they begin with the prefix. For example, nxtask_exit() vs. task_exit(). 2019-02-04 13:42:51 -06:00
task_terminate.c sched/task/task_exithook.c: nxtask_signalparent() in task_exithook.c may invalidate the group's parent task ID (tg_ppid) too soon. The tg_ppid field is use only to remember the parent tasks ID so that it can send the SIGCHLD signal to it. So it must stay valid until SIGCHLD has been sent. In nxtask_signalparent(), it calls nxtask_sigchild() to send SIGCHLD to the parent, then invalidates tg_ppid. That would be okay, except that the SIGCHLD is only sent when the last member of the group terminates. That is incorrect; tg_ppid can be invalidated too soon and, as a consequence, SIGCHLD would never be sent. 2019-08-01 08:14:11 -06:00
task_testcancel.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
task_vfork.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
task.h This commit renames all internal OS functions defined under sched/task so that they begin with the prefix. For example, nxtask_exit() vs. task_exit(). 2019-02-04 13:42:51 -06:00