summaryrefslogtreecommitdiff
path: root/kqueue.c
diff options
context:
space:
mode:
authorNiels Provos <provos@gmail.com>2004-11-25 09:50:18 +0000
committerNiels Provos <provos@gmail.com>2004-11-25 09:50:18 +0000
commit8773c4c96c47078ee502030daef36078bc0e75a4 (patch)
treec294c8b6524101f1f1cc5246311ff030a706ebde /kqueue.c
parent96a25ae6a2d4f63f1df483cd3d49b779175031b0 (diff)
downloadlibevent-8773c4c96c47078ee502030daef36078bc0e75a4.tar.gz
make libevent thread-safe; first cut
svn:r122
Diffstat (limited to 'kqueue.c')
-rw-r--r--kqueue.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/kqueue.c b/kqueue.c
index a17e69bb..68d6cb03 100644
--- a/kqueue.c
+++ b/kqueue.c
@@ -64,10 +64,6 @@
#include "event.h"
-extern struct event_list timequeue;
-extern struct event_list eventqueue;
-extern struct event_list addqueue;
-
#define EVLIST_X_KQINKERNEL 0x1000
#define NEVENT 64
@@ -83,8 +79,8 @@ struct kqop {
void *kq_init (void);
int kq_add (void *, struct event *);
int kq_del (void *, struct event *);
-int kq_recalc (void *, int);
-int kq_dispatch (void *, struct timeval *);
+int kq_recalc (struct event_base *, void *, int);
+int kq_dispatch (struct event_base *, void *, struct timeval *);
int kq_insert (struct kqop *, struct kevent *);
const struct eventop kqops = {
@@ -131,7 +127,7 @@ kq_init(void)
}
int
-kq_recalc(void *arg, int max)
+kq_recalc(struct event_base *base, void *arg, int max)
{
return (0);
}
@@ -188,7 +184,7 @@ kq_sighandler(int sig)
}
int
-kq_dispatch(void *arg, struct timeval *tv)
+kq_dispatch(struct event_base *base, void *arg, struct timeval *tv)
{
struct kqop *kqop = arg;
struct kevent *changes = kqop->changes;