19#ifndef POOLTESTS_LRUFILEMANAGER_H
20#define POOLTESTS_LRUFILEMANAGER_H
intptr_t FileId
Opaque FileId, its concrete type should only be assumed to be copyable and hashable.
unsigned getLimit() const
std::mutex m_close_fd_mutex
std::map< FileId, std::list< FileId >::iterator > m_current_pos
unsigned getAvailable() const
std::list< FileId > m_sorted_ids
Sorted from less to more recent.
void notifyClosedFile(FileId id) override
void notifyUsed(FileId id) override
virtual ~LRUFileManager()
void notifyOpenedFile(FileId id) override
void notifyIntentToOpen(bool write) override