5 #ifndef CVMFS_FD_REFCOUNT_MGR_H_
6 #define CVMFS_FD_REFCOUNT_MGR_H_
18 return *
const_cast<uint32_t *
>(
19 reinterpret_cast<const uint32_t *
>(key.
digest) + 1);
75 #endif // CVMFS_FD_REFCOUNT_MGR_H_
SmallHashDynamic< int, FdRefcountInfo > * GetRefcountMapPtr()
pthread_mutex_t * lock_cache_refcount_
static uint32_t hasher_int(const int &key)
unsigned char digest[digest_size_]
int Open(const shash::Any id, const std::string &path)
static uint32_t hasher_any(const shash::Any &key)
SmallHashDynamic< int, FdRefcountInfo > map_refcount_
SmallHashDynamic< shash::Any, int > map_fd_
SmallHashDynamic< shash::Any, int > * GetFdMapPtr()
FdRefcountInfo()
hash of the object opened through the fd
void AssignFrom(FdRefcountMgr *other)
uint32_t MurmurHash2(const void *key, int len, uint32_t seed)
shash::Any id
refcount for the times the fd was opened in the cache