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

DirShortId.C File Reference

#include "DirShortId.H"
#include "ShortIdKey.H"
#include "logging.H"
#include "VestaLog.H"
#include "VRConcurrency.H"
#include "VDirChangeable.H"
#include <VestaConfig.H>
#include <Thread.H>

Go to the source code of this file.

Typedefs

typedef Table< ShortIdKey,
DirShortIdInfo >::Default 
DirShortIdTable
typedef Table< ShortIdKey,
DirShortIdInfo >::Iterator 
DirShortIdIter

Functions

void InitDirShortId () throw ()
ShortId NewDirShortId (const FP::Tag &fptag, Bit32 sp) throw ()
Bit32 GetDirShortId (ShortId sid) throw ()
void SetDirShortId (ShortId sid, Bit32 sp) throw ()
void DeleteDirShortId (ShortId sid) throw ()
void LogAllDirShortIds (char *tag)
void CheckpointAllDirShortIds (Bit32 &nextSP, fstream &ckpt)
void DeleteAllDirShortIds () throw ()


Typedef Documentation

typedef Table<ShortIdKey, DirShortIdInfo>::Iterator DirShortIdIter
 

Definition at line 53 of file DirShortId.C.

typedef Table<ShortIdKey, DirShortIdInfo>::Default DirShortIdTable
 

Definition at line 52 of file DirShortId.C.


Function Documentation

void CheckpointAllDirShortIds Bit32 nextSP,
fstream &  ckpt
 

Definition at line 149 of file DirShortId.C.

References VDirChangeable::checkpoint(), VestaSource::immutableDirectory, VMemPool::lengthenPointer(), Basics::mutex::lock(), Table< K, V >::Iterator::Next(), DirShortIdInfo::sp, and Basics::mutex::unlock().

Referenced by VMemPool::writeCheckpoint().

void DeleteAllDirShortIds  )  throw ()
 

Definition at line 166 of file DirShortId.C.

References Table< K, V >::Default::Init(), Basics::mutex::lock(), Table< K, V >::Default::Size(), and Basics::mutex::unlock().

Referenced by VMemPool::rebuildDirShortIdTable().

void DeleteDirShortId ShortId  sid  )  throw ()
 

Definition at line 115 of file DirShortId.C.

References Table< K, V >::Default::Delete(), Basics::mutex::lock(), and Basics::mutex::unlock().

Referenced by VDirChangeable::sweepCallback().

Bit32 GetDirShortId ShortId  sid  )  throw ()
 

Definition at line 88 of file DirShortId.C.

References Table< K, V >::Default::Get(), Basics::mutex::lock(), DirShortIdInfo::sp, and Basics::mutex::unlock().

void InitDirShortId  )  throw ()
 

Definition at line 61 of file DirShortId.C.

References NEW.

Referenced by main().

void LogAllDirShortIds char *  tag  ) 
 

Definition at line 127 of file DirShortId.C.

References VestaLog::commit(), Basics::mutex::lock(), Table< K, V >::Iterator::Next(), VestaLog::put(), VestaLog::start(), Basics::mutex::unlock(), and VRLog.

ShortId NewDirShortId const FP::Tag fptag,
Bit32  sp
throw ()
 

Definition at line 70 of file DirShortId.C.

References ShortIdBlock::dirFlag, Table< K, V >::Default::Get(), Basics::mutex::lock(), Table< K, V >::Default::Put(), ShortIdKey::sid, DirShortIdInfo::sp, and Basics::mutex::unlock().

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

void SetDirShortId ShortId  sid,
Bit32  sp
throw ()
 

Definition at line 103 of file DirShortId.C.

References Basics::mutex::lock(), Table< K, V >::Default::Put(), DirShortIdInfo::sp, and Basics::mutex::unlock().

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


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