mirror of https://github.com/mkerrisk/man-pages
pthread_setschedparam.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in pthread_getschedparam(). Let's use it here too. .../glibc$ grep_glibc_prototype pthread_getschedparam sysdeps/htl/pthread.h:882: extern int pthread_getschedparam (pthread_t __thr, int *__restrict __policy, struct sched_param *__restrict __param) __THROW __nonnull ((2, 3)); sysdeps/nptl/pthread.h:426: extern int pthread_getschedparam (pthread_t __target_thread, int *__restrict __policy, struct sched_param *__restrict __param) __THROW __nonnull ((2, 3)); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
9ab24a89a3
commit
4beb303a63
|
@ -33,8 +33,8 @@ scheduling policy and parameters of a thread
|
|||
.PP
|
||||
.BI "int pthread_setschedparam(pthread_t " thread ", int " policy ,
|
||||
.BI " const struct sched_param *" param );
|
||||
.BI "int pthread_getschedparam(pthread_t " thread ", int *" policy ,
|
||||
.BI " struct sched_param *" param );
|
||||
.BI "int pthread_getschedparam(pthread_t " thread ", int *restrict " policy ,
|
||||
.BI " struct sched_param *restrict " param );
|
||||
.PP
|
||||
Compile and link with \fI\-pthread\fP.
|
||||
.fi
|
||||
|
|
Loading…
Reference in New Issue