Visual Basic (Declaration) | |
---|---|
Public Structure ReadLock Inherits System.ValueType |
C# | |
---|---|
public struct ReadLock : System.ValueType |
Library/Library.Test/LockingTests/TestReaderWriterLocking.cs
C# | Copy Code |
---|---|
using (ILockStrategy l = LockFactory.Create()) using (l.Read()) Assert.IsFalse(l.TryWrite(10)); |
VB.NET | Copy Code |
---|---|
Using l As ILockStrategy = LockFactory.Create() Using l.Read() Assert.IsFalse(l.TryWrite(10)) End Using End Using |
System.Object
System.ValueType
CSharpTest.Net.Synchronization.ReadLock
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
Reference
ReadLock MembersCSharpTest.Net.Synchronization Namespace
ReadLock ILockStrategy.Read()
ReadLock ILockStrategy.Read(Int32)
ReadLock ReservedWriteLocking.Read()
ReadLock ReservedWriteLocking.Read(Int32)
ReadLock DebugLocking.Read(Int32)
ReadLock DebugLocking.Read()
ReadLock ExclusiveLocking.Read()
ReadLock ExclusiveLocking.Read(Int32)
ReadLock IgnoreLocking.Read()
ReadLock IgnoreLocking.Read(Int32)
ReadLock ReaderWriterLocking.Read()
ReadLock ReaderWriterLocking.Read(Int32)
ReadLock SimpleReadWriteLocking.Read()
ReadLock SimpleReadWriteLocking.Read(Int32)
ReadLock WriterOnlyLocking.Read()
ReadLock WriterOnlyLocking.Read(Int32)
Used By
ThreadedBTreeTest.TestCallLevelLocking()Boolean SynchronizedDictionary
Boolean SynchronizedDictionary
SynchronizedDictionary
Boolean SynchronizedList
Int32 SynchronizedList
SynchronizedList