C# Class Shielded.WriteStamp

Contains information on the thread that has locked an object.
Afficher le fichier Open project: jbakic/Shielded Class Usage Examples

Méthodes publiques

Свойство Type Description
Locker TransactionContext
Version long?

Méthodes publiques

Méthode Description
Release ( ) : void
Wait ( ) : void
WriteStamp ( TransactionContext locker ) : System

Method Details

Release() public méthode

public Release ( ) : void
Résultat void

Wait() public méthode

public Wait ( ) : void
Résultat void

WriteStamp() public méthode

public WriteStamp ( TransactionContext locker ) : System
locker TransactionContext
Résultat System

Property Details

Locker public_oe property

Reference to the locking transaction. Useful to make sure that a thread, on rollback, releases only those locks it made.
public TransactionContext,Shielded Locker
Résultat TransactionContext

Version public_oe property

The version of the data that is about to be written into the locked object. All threads which should be able to read this version (i.e. their Shield.ReadStamp is greater or equal to this value) must wait for the lock to be released. If the value is null, then this lock is still being checked and the reader may proceed - when/if it passes check, it will certainly get a higher value than current reader's read stamp.
public long? Version
Résultat long?