/*
- * $Id: async_io.cc,v 1.19 2002/11/15 13:16:31 hno Exp $
+ * $Id: async_io.cc,v 1.22 2003/01/23 00:38:09 robertc Exp $
*
* DEBUG: section 32 Asynchronous Disk I/O
* AUTHOR: Pete Bentley <pete@demon.net>
#include "squid.h"
#include "store_asyncufs.h"
#include "Store.h"
+#include "fde.h"
#define _AIO_OPEN 0
#define _AIO_READ 1
fd_close(fd);
}
+
void
aioInit(void)
{
cachemgrRegister("squidaio_counts", "Async IO Function Counters",
aioStats, 0, 1);
initialised = 1;
- comm_quick_poll_required();
}
void
int
-aioCheckCallbacks(SwapDir * SD)
+AUFSSwapDir::callback()
{
squidaio_result_t *resultp;
squidaio_ctrl_t *ctrlp;
/* Flush all pending I/O */
void
-aioSync(SwapDir * SD)
+AUFSSwapDir::sync()
{
if (!initialised)
return; /* nothing to do then */
/* Flush all pending operations */
debug(32, 1) ("aioSync: flushing pending I/O operations\n");
do {
- aioCheckCallbacks(SD);
+ callback();
} while (squidaio_sync());
debug(32, 1) ("aioSync: done\n");
}