NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ReaderWriterLock.AcquireWriterLock

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.

Overload List

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);

See Also

ReaderWriterLock Class | ReaderWriterLock Members | System.Threading Namespace