CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SimpleChunkTables Class Reference

#include <file_chunk.h>

Inheritance diagram for SimpleChunkTables:
Collaboration diagram for SimpleChunkTables:

Classes

struct  OpenChunks
 

Public Member Functions

 SimpleChunkTables ()
 
 ~SimpleChunkTables ()
 
int Add (FileChunkReflist chunks)
 
OpenChunks Get (int fd)
 
void Release (int fd)
 

Private Member Functions

void Lock ()
 
void Unlock ()
 
- Private Member Functions inherited from SingleCopy
 SingleCopy ()
 

Private Attributes

std::vector< OpenChunksfd_table_
 
pthread_mutex_t * lock_
 

Detailed Description

Connects virtual file descriptors to FileChunkLists. Used by libcvmfs. Tries to keep the file descriptors small because they need to fit within 29bit. This class takes the ownership of the FileChunkList objects pointed to by the elements of fd_table_.

Definition at line 137 of file file_chunk.h.

Constructor & Destructor Documentation

SimpleChunkTables::SimpleChunkTables ( )

Definition at line 153 of file file_chunk.cc.

Here is the call graph for this function:

SimpleChunkTables::~SimpleChunkTables ( )

Definition at line 161 of file file_chunk.cc.

Member Function Documentation

int SimpleChunkTables::Add ( FileChunkReflist  chunks)

Definition at line 170 of file file_chunk.cc.

Referenced by LibContext::Open().

Here is the call graph for this function:

Here is the caller graph for this function:

SimpleChunkTables::OpenChunks SimpleChunkTables::Get ( int  fd)

Definition at line 190 of file file_chunk.cc.

Referenced by LibContext::Close(), and LibContext::Pread().

Here is the call graph for this function:

Here is the caller graph for this function:

void SimpleChunkTables::Lock ( )
inlineprivate

Definition at line 156 of file file_chunk.h.

Here is the call graph for this function:

void SimpleChunkTables::Release ( int  fd)

Definition at line 204 of file file_chunk.cc.

Referenced by LibContext::Close().

Here is the call graph for this function:

Here is the caller graph for this function:

void SimpleChunkTables::Unlock ( )
inlineprivate

Definition at line 161 of file file_chunk.h.

Here is the call graph for this function:

Member Data Documentation

std::vector<OpenChunks> SimpleChunkTables::fd_table_
private

Definition at line 166 of file file_chunk.h.

pthread_mutex_t* SimpleChunkTables::lock_
private

Definition at line 167 of file file_chunk.h.

Referenced by Lock(), and Unlock().


The documentation for this class was generated from the following files: