11 private int _dwWriterSeqNum;
13 private int _wReaderAndWriterLevel;
15 private int _dwThreadID;
21 return _dwFlags + _dwWriterSeqNum + _wReaderAndWriterLevel + _dwThreadID;
28 public override bool Equals(
object obj)
43 if (obj._dwFlags == _dwFlags && obj._dwWriterSeqNum == _dwWriterSeqNum && obj._wReaderAndWriterLevel == _wReaderAndWriterLevel)
45 return obj._dwThreadID == _dwThreadID;
static bool operator !=(LockCookie a, LockCookie b)
Indicates whether two T:System.Threading.LockCookie structures are not equal.
Defines the lock that implements single-writer/multiple-reader semantics. This is a value type.
override bool Equals(object obj)
Indicates whether a specified object is a T:System.Threading.LockCookie and is equal to the current i...
override int GetHashCode()
Returns the hash code for this instance.
bool Equals(LockCookie obj)
Indicates whether the current instance is equal to the specified T:System.Threading....
static bool operator==(LockCookie a, LockCookie b)
Indicates whether two T:System.Threading.LockCookie structures are equal.