mirror of https://github.com/mkerrisk/man-pages
pthread_attr_setschedparam.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in pthread_attr_getschedparam(), pthread_attr_setschedparam(). Let's use it here too. .../glibc$ grep_glibc_prototype pthread_attr_getschedparam sysdeps/htl/pthread.h:102: extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, struct sched_param *__restrict __param) __THROW __nonnull ((1, 2)); sysdeps/nptl/pthread.h:294: extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, struct sched_param *__restrict __param) __THROW __nonnull ((1, 2)); .../glibc$ grep_glibc_prototype pthread_attr_setschedparam sysdeps/htl/pthread.h:107: extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, const struct sched_param *__restrict __param) __THROW __nonnull ((1, 2)); sysdeps/nptl/pthread.h:299: extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, const struct sched_param *__restrict __param) __THROW __nonnull ((1, 2)); .../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
161c0ae7a6
commit
5175f162a3
|
@ -31,10 +31,10 @@ scheduling parameter attributes in thread attributes object
|
|||
.nf
|
||||
.B #include <pthread.h>
|
||||
.PP
|
||||
.BI "int pthread_attr_setschedparam(pthread_attr_t *" attr ,
|
||||
.BI " const struct sched_param *" param );
|
||||
.BI "int pthread_attr_getschedparam(const pthread_attr_t *" attr ,
|
||||
.BI " struct sched_param *" param );
|
||||
.BI "int pthread_attr_setschedparam(pthread_attr_t *restrict " attr ,
|
||||
.BI " const struct sched_param *restrict " param );
|
||||
.BI "int pthread_attr_getschedparam(const pthread_attr_t *restrict " attr ,
|
||||
.BI " struct sched_param *restrict " param );
|
||||
.PP
|
||||
Compile and link with \fI\-pthread\fP.
|
||||
.fi
|
||||
|
|
Loading…
Reference in New Issue