Ejemplo n.º 1
0
void DigestCacheDestroy(DigestCache* self)
{
  HashTableDestroy(&self->m_Table);
  MmapFileDestroy(&self->m_StateFile);
  LinearAllocDestroy(&self->m_Allocator);
  HeapDestroy(&self->m_Heap);
  ReadWriteLockDestroy(&self->m_Lock);
}
Ejemplo n.º 2
0
void ScanCacheDestroy(ScanCache* self)
{
  HeapFree(self->m_Heap, self->m_FrozenAccess);
  HeapFree(self->m_Heap, self->m_Table);
  ReadWriteLockDestroy(&self->m_Lock);
}