sched: add nx_wait, nx_waitid and nx_waitpid

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-05-04 00:54:56 +08:00
committed by patacongo
parent 390f9a5fb7
commit de2a9d8a77
4 changed files with 513 additions and 480 deletions
+10
View File
@@ -1260,6 +1260,16 @@ int nxsched_setaffinity(pid_t pid, size_t cpusetsize,
int sched_get_stackinfo(pid_t pid, FAR struct stackinfo_s *stackinfo);
/********************************************************************************
* Name: nx_wait/nx_waitid/nx_waitpid
********************************************************************************/
#ifdef CONFIG_SCHED_WAITPID
pid_t nx_wait(FAR int *stat_loc);
int nx_waitid(int idtype, id_t id, FAR siginfo_t *info, int options);
pid_t nx_waitpid(pid_t pid, FAR int *stat_loc, int options);
#endif
#undef EXTERN
#if defined(__cplusplus)
}