1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

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).
This commit is contained in:
Bruce Evans 2002-08-28 05:14:55 +00:00
parent 959d9e0b51
commit 1a90705201
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102506

View File

@ -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.