Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2005 15:42:34 -0400 (EDT)
From:      Daniel Eischen <deischen@freebsd.org>
To:        Stefan Farfeleder <stefanf@freebsd.org>
Cc:        threads@freebsd.org, standards@freebsd.org
Subject:   Re: <pthread.h>/2
Message-ID:  <Pine.GSO.4.43.0508191541520.12955-300000@sea.ntplx.net>
In-Reply-To: <20050819193333.GF77069@wombat.fafoe.narf.at>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--VS++wcV0S1rZb1Fb
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.GSO.4.43.0508191541522.12955@sea.ntplx.net>
Content-Disposition: INLINE

On Fri, 19 Aug 2005, Stefan Farfeleder wrote:

> Hi,
>
> any objections to this patch?  It moves the identifiers starting with
> MUTEX_ into the BSD namespace.

Looks fine to me.  I don't even think we should have MUTEX_*
around anyways.

-- 
Dan

--VS++wcV0S1rZb1Fb
Content-Type: TEXT/PLAIN; CHARSET=us-ascii
Content-ID: <Pine.GSO.4.43.0508191541523.12955@sea.ntplx.net>
Content-Description: 
Content-Disposition: ATTACHMENT; FILENAME="pthread.h-3.diff"

Index: src/include/pthread.h
===================================================================
RCS file: /b/ncvs/src/include/pthread.h,v
retrieving revision 1.37
diff -u -r1.37 pthread.h
--- src/include/pthread.h	19 Aug 2005 08:37:16 -0000	1.37
+++ src/include/pthread.h	19 Aug 2005 19:23:37 -0000
@@ -130,12 +133,15 @@
 	PTHREAD_MUTEX_ERRORCHECK	= 1,	/* Default POSIX mutex */
 	PTHREAD_MUTEX_RECURSIVE		= 2,	/* Recursive mutex */
 	PTHREAD_MUTEX_NORMAL		= 3,	/* No error checking */
-	MUTEX_TYPE_MAX
+	PTHREAD_MUTEX_TYPE_MAX
 };
 
 #define PTHREAD_MUTEX_DEFAULT		PTHREAD_MUTEX_ERRORCHECK
+#if __BSD_VISIBLE
 #define MUTEX_TYPE_FAST			PTHREAD_MUTEX_NORMAL
 #define MUTEX_TYPE_COUNTING_FAST	PTHREAD_MUTEX_RECURSIVE
+#define MUTEX_TYPE_MAX			PTHREAD_MUTEX_TYPE_MAX
+#endif
 
 /*
  * Thread function prototype definitions:

--VS++wcV0S1rZb1Fb
Content-Type: TEXT/PLAIN; CHARSET=us-ascii
Content-ID: <Pine.GSO.4.43.0508191541524.12955@sea.ntplx.net>
Content-Description: 
Content-Disposition: INLINE

_______________________________________________
freebsd-threads@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org"

--VS++wcV0S1rZb1Fb--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.43.0508191541520.12955-300000>