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

ShortIdStock Class Reference

List of all members.

Public Member Functions

 ShortIdStock (bool leafflag)
ShortId newShortId ()

Static Private Member Functions

static void * stockboy (void *arg)

Private Attributes

bool leafflag
ShortIdBlockblock [2]
int usng
Basics::mutex mu
Basics::cond need
Basics::cond have
Basics::thread stockboy_

Constructor & Destructor Documentation

ShortIdStock::ShortIdStock bool  leafflag  ) 
 

Definition at line 138 of file SourceOrDerived.C.

References block, Basics::thread::fork(), leafflag, stockboy(), stockboy_, and usng.


Member Function Documentation

ShortId ShortIdStock::newShortId  ) 
 

Definition at line 243 of file SourceOrDerived.C.

References ShortIdBlock::assignNextAvail(), block, Basics::cond::broadcast(), have, Basics::mutex::lock(), need, Basics::mutex::unlock(), usng, and Basics::cond::wait().

Referenced by SourceOrDerived::create(), and SourceOrDerived::fdcreate().

void * ShortIdStock::stockboy void *  arg  )  [static, private]
 

Definition at line 159 of file SourceOrDerived.C.

References ShortIdBlock::acquire(), block, Basics::cond::broadcast(), have, leafflag, ShortIdBlock::leaseExpires, ShortIdBlock::leaseNonexpiring, LeaseSafetyMargin, Basics::mutex::lock(), mu, need, ShortIdBlock::renew(), ShortIdBlock::start, Basics::cond::timedwait(), Basics::mutex::unlock(), usng, and Basics::cond::wait().

Referenced by ShortIdStock().


Member Data Documentation

ShortIdBlock* ShortIdStock::block[2] [private]
 

Definition at line 69 of file SourceOrDerived.C.

Referenced by newShortId(), ShortIdStock(), and stockboy().

Basics::cond ShortIdStock::have [private]
 

Definition at line 73 of file SourceOrDerived.C.

Referenced by newShortId(), and stockboy().

bool ShortIdStock::leafflag [private]
 

Definition at line 68 of file SourceOrDerived.C.

Referenced by ShortIdStock(), and stockboy().

Basics::mutex ShortIdStock::mu [private]
 

Definition at line 71 of file SourceOrDerived.C.

Referenced by stockboy().

Basics::cond ShortIdStock::need [private]
 

Definition at line 72 of file SourceOrDerived.C.

Referenced by newShortId(), and stockboy().

Basics::thread ShortIdStock::stockboy_ [private]
 

Definition at line 75 of file SourceOrDerived.C.

Referenced by ShortIdStock().

int ShortIdStock::usng [private]
 

Definition at line 70 of file SourceOrDerived.C.

Referenced by newShortId(), ShortIdStock(), and stockboy().


The documentation for this class was generated from the following file:
Generated on Mon May 8 00:49:13 2006 for Vesta by  doxygen 1.4.2