]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement process-shared locks support for libthr.so.3, without
authorkib <kib@FreeBSD.org>
Sun, 28 Feb 2016 17:52:33 +0000 (17:52 +0000)
committerkib <kib@FreeBSD.org>
Sun, 28 Feb 2016 17:52:33 +0000 (17:52 +0000)
commite76eb4255b957aa73f6228dd8d525d1946e3707d
tree93354adb0a612a635964c8498072087760a0f93b
parent800b1f3198ded0c65c024ea0cef1f44d4bc59fed
Implement process-shared locks support for libthr.so.3, without
breaking the ABI.  Special value is stored in the lock pointer to
indicate shared lock, and offline page in the shared memory is
allocated to store the actual lock.

Reviewed by: vangyzen (previous version)
Discussed with: deischen, emaste, jhb, rwatson,
Martin Simmons <martin@lispworks.com>
Tested by: pho
Sponsored by: The FreeBSD Foundation
27 files changed:
bin/sh/miscbltin.c
include/pthread.h
include/unistd.h
lib/libthr/thread/Makefile.inc
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_init.c
lib/libthr/thread/thr_mutex.c
lib/libthr/thread/thr_mutexattr.c
lib/libthr/thread/thr_private.h
lib/libthr/thread/thr_pshared.c [new file with mode: 0644]
lib/libthr/thread/thr_rwlock.c
lib/libthr/thread/thr_rwlockattr.c
sys/kern/kern_resource.c
sys/kern/kern_umtx.c
sys/kern/uipc_shm.c
sys/sys/mman.h
sys/sys/resource.h
sys/sys/resourcevar.h
sys/sys/umtx.h
sys/vm/vm_object.c
sys/vm/vm_object.h
usr.bin/limits/limits.c
usr.bin/procstat/procstat_rlimit.c