2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 /* DEBUG: section 79 Squid-side Disk I/O functions. */
11 #ifndef __STORE_DISKTHREADEDIOSTRATEGY_H__
12 #define __STORE_DISKTHREADEDIOSTRATEGY_H__
19 #define _AIO_OPENDIR 5
21 #include "DiskIO/DiskIOStrategy.h"
23 class DiskThreadsIOStrategy
: public DiskIOStrategy
27 DiskThreadsIOStrategy();
28 virtual bool shedLoad();
30 virtual RefCount
<DiskFile
> newFile(char const *path
);
31 virtual bool unlinkdUseful() const;
32 virtual void unlinkFile (char const *);
33 virtual int callback();
37 /* Todo: add access limitations */
39 static DiskThreadsIOStrategy Instance
;
42 static void aioStats(StoreEntry
* sentry
);
43 void registerWithCacheManager(void);