Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpthread Remove pthread_attr_getscope() and pthread_at...



details:   https://anonhg.NetBSD.org/src/rev/77bfc2054a62
branches:  trunk
changeset: 756145:77bfc2054a62
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Wed Jul 07 08:41:11 2010 +0000

description:
Remove pthread_attr_getscope() and pthread_attr_setscope().

diffstat:

 lib/libpthread/pthread_attr.3 |  25 +++----------------------
 1 files changed, 3 insertions(+), 22 deletions(-)

diffs (60 lines):

diff -r 3de79b9746a5 -r 77bfc2054a62 lib/libpthread/pthread_attr.3
--- a/lib/libpthread/pthread_attr.3     Wed Jul 07 08:22:53 2010 +0000
+++ b/lib/libpthread/pthread_attr.3     Wed Jul 07 08:41:11 2010 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: pthread_attr.3,v 1.11 2009/10/05 23:37:01 rmind Exp $
+.\"    $NetBSD: pthread_attr.3,v 1.12 2010/07/07 08:41:11 jruoho Exp $
 .\"
 .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -72,9 +72,7 @@
 .Nm pthread_attr_setschedparam ,
 .Nm pthread_attr_getschedparam
 .Nm pthread_attr_setschedpolicy ,
-.Nm pthread_attr_getschedpolicy ,
-.Nm pthread_attr_setscope ,
-.Nm pthread_attr_getscope
+.Nm pthread_attr_getschedpolicy
 .Nd thread attribute operations
 .Sh LIBRARY
 .Lb libpthread
@@ -112,10 +110,6 @@
 .Fn pthread_attr_setschedpolicy "pthread_attr_t *attr" "int policy"
 .Ft int
 .Fn pthread_attr_getschedpolicy "const pthread_attr_t * restrict attr" "int * restrict policy"
-.Ft int
-.Fn pthread_attr_setscope "pthread_attr_t *attr" "int contentionscope"
-.Ft int
-.Fn pthread_attr_getscope "const pthread_attr_t * restrict attr" "int * restrict contentionscope"
 .Sh DESCRIPTION
 Thread attributes are used to specify parameters to
 .Fn pthread_create .
@@ -228,17 +222,6 @@
 Invalid or unsupported value for
 .Fa policy .
 .El
-.Pp
-.Fn pthread_attr_setscope
-may fail if:
-.Bl -tag -width Er
-.It Bq Er EINVAL
-Invalid value for
-.Fa attr .
-.It Bq Er ENOTSUP
-Invalid or unsupported value for
-.Fa contentionscope .
-.El
 .Sh SEE ALSO
 .Xr pthread_create 3 ,
 .Xr pthread_join 3
@@ -258,9 +241,7 @@
 and
 .Fn pthread_attr_getschedparam
 .Fn pthread_attr_setschedpolicy ,
-.Fn pthread_attr_getschedpolicy ,
-.Fn pthread_attr_setscope ,
 and
-.Fn pthread_attr_getscope
+.Fn pthread_attr_getschedpolicy
 conform to
 .St -p1003.1-96 .



Home | Main Index | Thread Index | Old Index