Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpthread G/c unused rwlock owner macros copy-pasted fr...
details: https://anonhg.NetBSD.org/src/rev/a90c202e00dc
branches: trunk
changeset: 1005683:a90c202e00dc
user: uwe <uwe%NetBSD.org@localhost>
date: Mon Dec 16 20:45:40 2019 +0000
description:
G/c unused rwlock owner macros copy-pasted from the kernel.
They were brought along with the rwlock flags but never used and never
even adapted to the new home (the struct member name is different
here). I looked at adapting and using them, but they don't really
help readability that much and there are cases where we need to deal
with "fused" owner values anyway and so can't use them.
diffstat:
lib/libpthread/pthread_int.h | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diffs (18 lines):
diff -r 349e862df2a1 -r a90c202e00dc lib/libpthread/pthread_int.h
--- a/lib/libpthread/pthread_int.h Mon Dec 16 19:43:36 2019 +0000
+++ b/lib/libpthread/pthread_int.h Mon Dec 16 20:45:40 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_int.h,v 1.95 2019/03/05 01:35:52 christos Exp $ */
+/* $NetBSD: pthread_int.h,v 1.96 2019/12/16 20:45:40 uwe Exp $ */
/*-
* Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -324,8 +324,5 @@
#define RW_READ_COUNT_SHIFT 4
#define RW_READ_INCR (1 << RW_READ_COUNT_SHIFT)
#define RW_THREAD ((uintptr_t)-RW_READ_INCR)
-#define RW_OWNER(rw) ((rw)->rw_owner & RW_THREAD)
-#define RW_COUNT(rw) ((rw)->rw_owner & RW_THREAD)
-#define RW_FLAGS(rw) ((rw)->rw_owner & ~RW_THREAD)
#endif /* _LIB_PTHREAD_INT_H */
Home |
Main Index |
Thread Index |
Old Index