]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
POSIX compliance improvements in the pthread(3) functions.
authorpfg <pfg@FreeBSD.org>
Sat, 18 Aug 2018 01:05:38 +0000 (01:05 +0000)
committerpfg <pfg@FreeBSD.org>
Sat, 18 Aug 2018 01:05:38 +0000 (01:05 +0000)
commitaf33553b47e37d75b9ffe1fb36cd2a2402afe90d
tree18869f4cb6cd6eb5ed0b2b0ea0e741b517950568
parentc75b251b95bc27cf94b8b2d9a4239ffe46744ce0
POSIX compliance improvements in the pthread(3) functions.

This basically adds makes use of the C99 restrict keyword, and also
adds some 'const's to four threading functions: pthread_mutexattr_gettype(),
pthread_mutexattr_getprioceiling(), pthread_mutexattr_getprotocol(), and
pthread_mutex_getprioceiling. The changes are in accordance to POSIX/SUSv4-2018.

Hinted by: DragonFlyBSD

Relnotes: yes
MFC after: 1 month
Differential Revision: D16722
27 files changed:
include/pthread.h
lib/libthr/thread/thr_attr.c
lib/libthr/thread/thr_barrier.c
lib/libthr/thread/thr_barrierattr.c
lib/libthr/thread/thr_cond.c
lib/libthr/thread/thr_condattr.c
lib/libthr/thread/thr_create.c
lib/libthr/thread/thr_getschedparam.c
lib/libthr/thread/thr_mutex.c
lib/libthr/thread/thr_mutexattr.c
lib/libthr/thread/thr_rwlock.c
lib/libthr/thread/thr_rwlockattr.c
share/man/man3/pthread.3
share/man/man3/pthread_attr.3
share/man/man3/pthread_barrier_destroy.3
share/man/man3/pthread_barrierattr.3
share/man/man3/pthread_cond_init.3
share/man/man3/pthread_cond_wait.3
share/man/man3/pthread_create.3
share/man/man3/pthread_mutex_init.3
share/man/man3/pthread_mutex_timedlock.3
share/man/man3/pthread_mutexattr.3
share/man/man3/pthread_rwlock_init.3
share/man/man3/pthread_rwlock_timedrdlock.3
share/man/man3/pthread_rwlock_timedwrlock.3
share/man/man3/pthread_rwlockattr_getpshared.3
share/man/man3/pthread_schedparam.3