incubator-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
..
Make.defs
exit.c
spawn.h
task.h
task_activate.c
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
task_getpid.c
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
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
task_setcanceltype.c
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
task_starthook.c
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