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
[-- Attachment #1 --] 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 [-- Attachment #2 --] 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: [-- Attachment #3 --] _______________________________________________ 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.43.0508191541520.12955-300000>
