C# Class Rhino.PersistentHashTable.HiLoVersionGenerator

Inheritance: IVersionGenerator
显示文件 Open project: ayende/rhino-pht

Public Methods

Method Description
HiLoVersionGenerator ( JET_INSTANCE instance, int capacity, string database ) : System

Private Methods

Method Description
GenerateNextHi ( ) : int

Only one thread may execute this at a given time. Note that this forces a NEW session and transaction, and doesn't use the existing one.

GenerateNextVersion ( ) : int

Method Details

HiLoVersionGenerator() public method

public HiLoVersionGenerator ( JET_INSTANCE instance, int capacity, string database ) : System
instance JET_INSTANCE
capacity int
database string
return System