]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
POSIX compliance improvements in the pthread(3) functions.
authorPedro F. Giffuni <pfg@FreeBSD.org>
Sat, 18 Aug 2018 01:05:38 +0000 (01:05 +0000)
committerPedro F. Giffuni <pfg@FreeBSD.org>
Sat, 18 Aug 2018 01:05:38 +0000 (01:05 +0000)
commitb6413b6db8756c1ecae5e575e6516f811966046f
tree18869f4cb6cd6eb5ed0b2b0ea0e741b517950568
parent49f1692a3b504b32efc2d3d92660131036757ed6
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