Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpthread Don't include <machine/lock.h> anymore; inste...
details: https://anonhg.NetBSD.org/src/rev/5096b5914abf
branches: trunk
changeset: 552539:5096b5914abf
user: nathanw <nathanw%NetBSD.org@localhost>
date: Fri Sep 26 22:48:23 2003 +0000
description:
Don't include <machine/lock.h> anymore; instead, we now get
__cpu_simple_lock_t and __SIMPLELOCK_{UN,}LOCKED from <sys/types.h>.
Should prevent the massive namespace pollution by way of dragging in
many MD headers that has been observed to break stuff.
diffstat:
lib/libpthread/pthread_types.h | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (21 lines):
diff -r 1c512713bef5 -r 5096b5914abf lib/libpthread/pthread_types.h
--- a/lib/libpthread/pthread_types.h Fri Sep 26 22:45:41 2003 +0000
+++ b/lib/libpthread/pthread_types.h Fri Sep 26 22:48:23 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_types.h,v 1.4 2003/07/17 20:51:36 nathanw Exp $ */
+/* $NetBSD: pthread_types.h,v 1.5 2003/09/26 22:48:23 nathanw Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -39,9 +39,8 @@
#ifndef _LIB_PTHREAD_TYPES_H
#define _LIB_PTHREAD_TYPES_H
-#include <machine/lock.h>
-
-/* We use the "pthread_spin_t" name internally; "pthread_spinlock_t" is the
+/*
+ * We use the "pthread_spin_t" name internally; "pthread_spinlock_t" is the
* POSIX spinlock object.
*/
typedef __cpu_simple_lock_t pthread_spin_t;
Home |
Main Index |
Thread Index |
Old Index