C# Class Shielded.WriteStamp

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

Public Properties

Property Type Description
Locker TransactionContext
Version long?

Public Methods

Method Description
Release ( ) : void
Wait ( ) : void
WriteStamp ( TransactionContext locker ) : System

Method Details

Release() public method

public Release ( ) : void
return void

Wait() public method

public Wait ( ) : void
return void

WriteStamp() public method

public WriteStamp ( TransactionContext locker ) : System
locker TransactionContext
return 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
return 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
return long?