Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

FPShortId.C File Reference

#include "VestaLog.H"
#include "VRConcurrency.H"
#include "FP.H"
#include "VMemPool.H"
#include "VDirChangeable.H"
#include "FPShortId.H"
#include "Basics.H"
#include "math.h"
#include <VestaConfig.H>
#include <Thread.H>

Go to the source code of this file.

Defines

#define START_FPTBL_SIZE   5000
#define MAX_FPTBL_SIZE   50000000
#define RESIZE_TRIGGER   0.7
#define RESIZE_FACTOR   2.0

Functions

FP::Tag DirFP (Bit8 *rep)
ShortId DirId (Bit8 *rep)
void InitFPShortId ()
void SetFPFileShortId (Bit8 *entry)
void SetFPDirShortId (Bit8 *rep)
ShortId GetFPShortId (const FP::Tag &fptag)
void DeleteAllFPShortId ()


Define Documentation

#define MAX_FPTBL_SIZE   50000000
 

Definition at line 44 of file FPShortId.C.

#define RESIZE_FACTOR   2.0
 

Definition at line 46 of file FPShortId.C.

Referenced by InitFPShortId().

#define RESIZE_TRIGGER   0.7
 

Definition at line 45 of file FPShortId.C.

Referenced by InitFPShortId().

#define START_FPTBL_SIZE   5000
 

Definition at line 43 of file FPShortId.C.

Referenced by InitFPShortId().


Function Documentation

void DeleteAllFPShortId  ) 
 

Definition at line 116 of file FPShortId.C.

References FPShortIdTable::Clear(), Basics::mutex::lock(), and Basics::mutex::unlock().

Referenced by VMemPool::rebuildDirShortIdTable().

FP::Tag DirFP Bit8 rep  ) 
 

Definition at line 59 of file FPShortId.C.

References VDirChangeable::fptag(), and VestaSource::immutableDirectory.

Referenced by InitFPShortId().

ShortId DirId Bit8 rep  ) 
 

Definition at line 66 of file FPShortId.C.

References VDirChangeable::getID(), and VestaSource::immutableDirectory.

Referenced by InitFPShortId().

ShortId GetFPShortId const FP::Tag fptag  ) 
 

Definition at line 102 of file FPShortId.C.

References FPShortIdTable::Get(), Basics::mutex::lock(), NullShortId, and Basics::mutex::unlock().

Referenced by VDirChangeable::copyMutableToImmutable().

void InitFPShortId  ) 
 

Definition at line 72 of file FPShortId.C.

References DirFP(), DirId(), VDirChangeable::efptag(), NEW_CONSTR, RESIZE_FACTOR, RESIZE_TRIGGER, START_FPTBL_SIZE, and VDirChangeable::value().

Referenced by main().

void SetFPDirShortId Bit8 rep  ) 
 

Definition at line 94 of file FPShortId.C.

References Basics::mutex::lock(), FPShortIdTable::Set(), and Basics::mutex::unlock().

Referenced by VDirChangeable::collapse(), VDirChangeable::copyMutableToImmutable(), VDirChangeable::insertImmutableDirectory(), and VDirChangeable::rebuildCallback().

void SetFPFileShortId Bit8 entry  ) 
 

Definition at line 86 of file FPShortId.C.

References Basics::mutex::lock(), FPShortIdTable::Set(), and Basics::mutex::unlock().

Referenced by VDirChangeable::copyMutableToImmutable(), VDirChangeable::insertFile(), VDirChangeable::rebuildCallback(), and VDirChangeable::renameTo().


Generated on Mon May 8 00:49:03 2006 for Vesta by  doxygen 1.4.2