From a84c87d76abcd023ddfb2c0985a65bafd522682b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 2 Nov 2009 19:51:26 +0000 Subject: Refactor IOCP callback interface Chris Davis points out that GetQueuedCompletionStatus sometimes returns false not to report "No events for you!" but instead to report "An overlapped operation failed." Add a way to tell an event_overlapped that its operation failed. svn:r1490 --- iocp-internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iocp-internal.h') diff --git a/iocp-internal.h b/iocp-internal.h index 31024cc1..18b89d25 100644 --- a/iocp-internal.h +++ b/iocp-internal.h @@ -34,7 +34,7 @@ extern "C" { struct event_overlapped; struct event_iocp_port; struct evbuffer; -typedef void (*iocp_callback)(struct event_overlapped *, uintptr_t, ev_ssize_t); +typedef void (*iocp_callback)(struct event_overlapped *, uintptr_t, ev_ssize_t, int success); /* This whole file is actually win32 only. We wrap the structures in a win32 * ifdef so that we can test-compile code that uses these interfaces on -- cgit v1.2.1