C# 클래스 Shielded.WriteStamp

Contains information on the thread that has locked an object.
파일 보기 프로젝트 열기: jbakic/Shielded 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Locker TransactionContext
Version long?

공개 메소드들

메소드 설명
Release ( ) : void
Wait ( ) : void
WriteStamp ( TransactionContext locker ) : System

메소드 상세

Release() 공개 메소드

public Release ( ) : void
리턴 void

Wait() 공개 메소드

public Wait ( ) : void
리턴 void

WriteStamp() 공개 메소드

public WriteStamp ( TransactionContext locker ) : System
locker TransactionContext
리턴 System

프로퍼티 상세

Locker 공개적으로 프로퍼티

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

Version 공개적으로 프로퍼티

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
리턴 long?