<pthread.h>/2
Daniel Eischen
deischen at freebsd.org
Fri Aug 19 19:42:36 GMT 2005
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
-------------- next part --------------
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:
-------------- next part --------------
_______________________________________________
freebsd-threads at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "freebsd-threads-unsubscribe at freebsd.org"
More information about the freebsd-standards
mailing list