diff options
author | bde <bde@FreeBSD.org> | 2002-08-28 05:14:55 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-08-28 05:14:55 +0000 |
commit | 6792f38305994997fa8be20e475c792f02458682 (patch) | |
tree | d76bde8ce989844b4870ba5378a2500d2b840eec /sys | |
parent | 34c70c6794aa858931196ecf08f24a70462912a3 (diff) | |
download | FreeBSD-src-6792f38305994997fa8be20e475c792f02458682.zip FreeBSD-src-6792f38305994997fa8be20e475c792f02458682.tar.gz |
Forward declare struct thread so that this header doesn't depend on its
own namespace pollution/compatibility cruft.
Removed the main part of the pollution. All clients have been converted
to either not depend on getting old locking interfaces from this new
locking header, or usual case to get it from another header (typically
vnode.h, where declaring old loccking interfaces is less bogus because
vnode.h uses them internally).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/lock.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h index 3034f99..e17744f 100644 --- a/sys/sys/lock.h +++ b/sys/sys/lock.h @@ -32,15 +32,11 @@ #ifndef _SYS_LOCK_H_ #define _SYS_LOCK_H_ -/* - * XXX - compatability until lockmgr() goes away or all the #includes are - * updated. - */ -#include <sys/lockmgr.h> - #include <sys/queue.h> #include <sys/_lock.h> +struct thread; + /* * Lock classes. Each lock has a class which describes characteristics * common to all types of locks of a given class. |