Метод | Описание | |
---|---|---|
GetReaderTicket ( |
Reader should keep a reference to his ticket, and release it with a call to ReleaseReaderTicket when done.
|
|
GetUntrackedReadStamp ( ) : |
For commute running block, because it knows that the ticket taken by the main transaction is all the protection it needs.
|
|
NewVersion ( WriteStamp stamp, |
Called after a thread checked and can commit. This will assign it a unique stamp to use for writing. This method will enter the new stamp into the stamp.Version. It must be done here to guarantee that no GetReaderTicket will return your stamp number before it has been written into your stamp lock! After completing your write, place your changes into the ticket, and this class will trim the old versions at the correct time. It is critical that this be done, which is why this method returns it as an out param - to make sure no exception can cause us to lose the ref to the ticket, if it is already in the chain.
|
|
ReleaseReaderTicket ( |
After no reading will be done for the given reader ticket, release it with this method.
|
|
TrimCopies ( ) : void |
Метод | Описание | |
---|---|---|
VersionList ( ) : System |
public static GetReaderTicket ( |
||
ticket | ||
Результат | void |
public static GetUntrackedReadStamp ( ) : |
||
Результат |
public static NewVersion ( WriteStamp stamp, |
||
stamp | WriteStamp | |
ticket | ||
Результат | void |
public static ReleaseReaderTicket ( |
||
ticket | ||
Результат | void |