1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

- Make the eventhandler_mutex mutex a private variable in

subr_eventhandler.c
- Move the extra #include's in sys/eventhandler.h to be protected by
  the #ifndef SYS_EVENTHANDLER/#endif
This commit is contained in:
John Baldwin 2000-10-25 00:01:39 +00:00
parent 5b93d1da3f
commit d543796f86
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67535
2 changed files with 4 additions and 4 deletions

View File

@ -37,6 +37,7 @@ MALLOC_DEFINE(M_EVENTHANDLER, "eventhandler", "Event handler records");
/* List of 'slow' lists */
static TAILQ_HEAD(, eventhandler_list) eventhandler_lists;
static int eventhandler_lists_initted = 0;
static struct mtx eventhandler_mutex;
struct eventhandler_entry_generic
{

View File

@ -26,12 +26,12 @@
* $FreeBSD$
*/
#include <sys/queue.h>
#include <sys/mutex.h>
#ifndef SYS_EVENTHANDLER_H
#define SYS_EVENTHANDLER_H
#include <sys/queue.h>
#include <sys/mutex.h>
struct eventhandler_entry
{
TAILQ_ENTRY(eventhandler_entry) ee_link;
@ -50,7 +50,6 @@ struct eventhandler_list
};
typedef struct eventhandler_entry *eventhandler_tag;
struct mtx eventhandler_mutex;
/*
* Fast handler lists require the eventhandler list be present