svn commit: r215376 - user/davidxu/libthr/sys/sys

David Xu davidxu at FreeBSD.org
Tue Nov 16 07:06:51 UTC 2010


Author: davidxu
Date: Tue Nov 16 07:06:51 2010
New Revision: 215376
URL: http://svn.freebsd.org/changeset/base/215376

Log:
  Use int32_t or uint32_t, the size is fixed so it can be shared
  by 32-bit and 64-bit processes.

Modified:
  user/davidxu/libthr/sys/sys/_pthreadtypes.h

Modified: user/davidxu/libthr/sys/sys/_pthreadtypes.h
==============================================================================
--- user/davidxu/libthr/sys/sys/_pthreadtypes.h	Tue Nov 16 07:03:06 2010	(r215375)
+++ user/davidxu/libthr/sys/sys/_pthreadtypes.h	Tue Nov 16 07:06:51 2010	(r215376)
@@ -102,12 +102,12 @@ struct pthread_mutex {
 
 struct pthread_cond {
 	__uint32_t	__lock;
-	int		__waiters;
-	int		__signals;
+	__uint32_t	__waiters;
+	__uint32_t	__signals;
 	__uint32_t	__seq;
 	__uint64_t	__broadcast_seq;
-	int		__refcount;
-	int		__destroying;
+	__int32_t	__refcount;
+	__int32_t	__destroying;
 	/* kernel part */
 	__uint32_t	__kern_has_waiters;
 	__uint32_t	__flags;


More information about the svn-src-user mailing list