Acquires writer lock. Supports nested Writer Locks. The thread will block if a different thread has reader lock. It will deadlock if this thread has reader lock. Use UpgradeToWriterLock when you are not sure if the thread has reader lock.
Acquires writer lock. Supports nested Writer Locks. The thread will block if a different thread has reader lock. It will deadlock if this thread has reader lock. Use UpgradeToWriterLock when you are not sure if the thread has reader lock.
[Visual Basic] Overloads Public Sub AcquireWriterLock(TimeSpan)
[C#] public void AcquireWriterLock(TimeSpan);
[C++] public: void AcquireWriterLock(TimeSpan);
[JScript] public function AcquireWriterLock(TimeSpan);
Acquires writer lock. Supports nested Writer Locks. The thread will block if a different thread has reader lock. It will deadlock if this thread has reader lock. Use UpgradeToWriterLock when you are not sure if the thread has reader lock.
[Visual Basic] Overloads Public Sub AcquireWriterLock(Integer)
[C#] public void AcquireWriterLock(int);
[C++] public: void AcquireWriterLock(int);
[JScript] public function AcquireWriterLock(int);
ReaderWriterLock Class | ReaderWriterLock Members | System.Threading Namespace