summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/libntp/recvbuff.c
diff options
context:
space:
mode:
authorroberto <roberto@FreeBSD.org>2000-01-28 14:55:50 +0000
committerroberto <roberto@FreeBSD.org>2000-01-28 14:55:50 +0000
commitb5b40f9e420899251189775800d9f74092925299 (patch)
tree98efdf1b74d6ecb7828bb502a0350116eeb2fd3c /contrib/ntp/libntp/recvbuff.c
parentef64b99e8412f2273dd2e8b3291c2f78ffc4667f (diff)
downloadFreeBSD-src-b5b40f9e420899251189775800d9f74092925299.zip
FreeBSD-src-b5b40f9e420899251189775800d9f74092925299.tar.gz
Virgin import of ntpd 4.0.99b
Diffstat (limited to 'contrib/ntp/libntp/recvbuff.c')
-rw-r--r--contrib/ntp/libntp/recvbuff.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/contrib/ntp/libntp/recvbuff.c b/contrib/ntp/libntp/recvbuff.c
index 37166a4..96d212d 100644
--- a/contrib/ntp/libntp/recvbuff.c
+++ b/contrib/ntp/libntp/recvbuff.c
@@ -24,7 +24,6 @@ static struct recvbuf *volatile fulllist; /* lifo buffers with data */
static struct recvbuf *volatile beginlist; /* fifo buffers with data */
#if defined(HAVE_IO_COMPLETION_PORT)
-static HANDLE fulldatabufferevent;
static CRITICAL_SECTION RecvCritSection;
# define RECV_BLOCK_IO() EnterCriticalSection(&RecvCritSection)
# define RECV_UNBLOCK_IO() LeaveCriticalSection(&RecvCritSection)
@@ -116,22 +115,10 @@ init_recvbuff(int nbufs)
#if defined(HAVE_IO_COMPLETION_PORT)
InitializeCriticalSection(&RecvCritSection);
- fulldatabufferevent = CreateEvent(NULL, FALSE,FALSE, NULL);
#endif
}
-#if defined(HAVE_IO_COMPLETION_PORT)
-
-/* Return the new full buffer event handle . This handle is
- * signalled when a recv buffer is placed in the full list.
- */
-HANDLE
-get_recv_buff_event()
-{
- return fulldatabufferevent;
-}
-#endif
/*
* getrecvbufs - get receive buffers which have data in them
@@ -224,11 +211,6 @@ add_full_recv_buffer(
fulllist = rb;
full_recvbufs++;
-#if defined(HAVE_IO_COMPLETION_PORT)
- if (!SetEvent(fulldatabufferevent)) {
- msyslog(LOG_ERR, "Can't set receive buffer event");
- }
-#endif
RECV_UNBLOCK_IO();
}
OpenPOWER on IntegriCloud