- Forward declare struct mtx instead of #include'ing sys/mutex.h
This commit is contained in:
parent
915cf38b11
commit
7ff9f88355
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67537
@ -41,9 +41,10 @@
|
|||||||
#ifndef _LOCK_H_
|
#ifndef _LOCK_H_
|
||||||
#define _LOCK_H_
|
#define _LOCK_H_
|
||||||
|
|
||||||
#include <sys/mutex.h>
|
|
||||||
#include <machine/lock.h>
|
#include <machine/lock.h>
|
||||||
|
|
||||||
|
struct mtx;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The general lock structure. Provides for multiple shared locks,
|
* The general lock structure. Provides for multiple shared locks,
|
||||||
* upgrading from shared to exclusive, and sleeping until the lock
|
* upgrading from shared to exclusive, and sleeping until the lock
|
||||||
|
@ -41,9 +41,10 @@
|
|||||||
#ifndef _LOCK_H_
|
#ifndef _LOCK_H_
|
||||||
#define _LOCK_H_
|
#define _LOCK_H_
|
||||||
|
|
||||||
#include <sys/mutex.h>
|
|
||||||
#include <machine/lock.h>
|
#include <machine/lock.h>
|
||||||
|
|
||||||
|
struct mtx;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The general lock structure. Provides for multiple shared locks,
|
* The general lock structure. Provides for multiple shared locks,
|
||||||
* upgrading from shared to exclusive, and sleeping until the lock
|
* upgrading from shared to exclusive, and sleeping until the lock
|
||||||
|
Loading…
Reference in New Issue
Block a user