diff options
author | kib <kib@FreeBSD.org> | 2016-02-28 17:52:33 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-02-28 17:52:33 +0000 |
commit | e76eb4255b957aa73f6228dd8d525d1946e3707d (patch) | |
tree | 93354adb0a612a635964c8498072087760a0f93b /include | |
parent | 800b1f3198ded0c65c024ea0cef1f44d4bc59fed (diff) | |
download | FreeBSD-src-e76eb4255b957aa73f6228dd8d525d1946e3707d.zip FreeBSD-src-e76eb4255b957aa73f6228dd8d525d1946e3707d.tar.gz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/pthread.h | 2 | ||||
-rw-r--r-- | include/unistd.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/pthread.h b/include/pthread.h index 8b59223..8078bcb 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -69,7 +69,7 @@ #define PTHREAD_EXPLICIT_SCHED 0 /* - * Flags for read/write lock attributes + * Values for process shared/private attributes. */ #define PTHREAD_PROCESS_PRIVATE 0 #define PTHREAD_PROCESS_SHARED 1 diff --git a/include/unistd.h b/include/unistd.h index 4c26a04..0d20027 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -112,7 +112,7 @@ typedef __useconds_t useconds_t; #define _POSIX_THREAD_PRIO_INHERIT 200112L #define _POSIX_THREAD_PRIO_PROTECT 200112L #define _POSIX_THREAD_PRIORITY_SCHEDULING 200112L -#define _POSIX_THREAD_PROCESS_SHARED -1 +#define _POSIX_THREAD_PROCESS_SHARED 200112L #define _POSIX_THREAD_SAFE_FUNCTIONS -1 #define _POSIX_THREAD_SPORADIC_SERVER -1 #define _POSIX_THREADS 200112L |