Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpthread POSIX harder the pthread_mutex_timedlock(3) p...
details: https://anonhg.NetBSD.org/src/rev/0e5beec71138
branches: trunk
changeset: 348617:0e5beec71138
user: kamil <kamil%NetBSD.org@localhost>
date: Sun Oct 30 23:26:33 2016 +0000
description:
POSIX harder the pthread_mutex_timedlock(3) prototype
Add missing __restrict keyword to the first pointer parameter.
It was already used for the second argument, should not be a functional
change and generated code should be the same.
This new form is now aligned with POSIX.
diffstat:
lib/libpthread/pthread.h | 4 ++--
lib/libpthread/pthread_mutex.3 | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 033d096eed08 -r 0e5beec71138 lib/libpthread/pthread.h
--- a/lib/libpthread/pthread.h Sun Oct 30 19:33:49 2016 +0000
+++ b/lib/libpthread/pthread.h Sun Oct 30 23:26:33 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread.h,v 1.37 2016/07/03 14:24:58 christos Exp $ */
+/* $NetBSD: pthread.h,v 1.38 2016/10/30 23:26:33 kamil Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -94,7 +94,7 @@
int pthread_mutex_lock(pthread_mutex_t *);
int pthread_mutex_trylock(pthread_mutex_t *);
int pthread_mutex_unlock(pthread_mutex_t *);
-int pthread_mutex_timedlock(pthread_mutex_t *,
+int pthread_mutex_timedlock(pthread_mutex_t * __restrict,
const struct timespec * __restrict);
int pthread_mutex_getprioceiling(const pthread_mutex_t * __restrict,
int * __restrict);
diff -r 033d096eed08 -r 0e5beec71138 lib/libpthread/pthread_mutex.3
--- a/lib/libpthread/pthread_mutex.3 Sun Oct 30 19:33:49 2016 +0000
+++ b/lib/libpthread/pthread_mutex.3 Sun Oct 30 23:26:33 2016 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_mutex.3,v 1.8 2016/07/05 10:04:17 wiz Exp $
+.\" $NetBSD: pthread_mutex.3,v 1.9 2016/10/30 23:26:33 kamil Exp $
.\"
.\" Copyright (c) 2002, 2010 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -76,7 +76,7 @@
.Ft int
.Fn pthread_mutex_unlock "pthread_mutex_t *mutex"
.Ft int
-.Fn pthread_mutex_timedlock "pthread_mutex_t * mutex" "const struct timespec *__restrict timeout"
+.Fn pthread_mutex_timedlock "pthread_mutex_t *__restrict mutex" "const struct timespec *__restrict timeout"
.Ft int
.Fn pthread_mutex_getprioceiling "const pthread_mutex_t * __restrict mutex" "int * __restrict prioceiling"
.Ft int
Home |
Main Index |
Thread Index |
Old Index