A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/system.threading.readerwriterlockslim below:

ReaderWriterLockSlim Class (System.Threading) | Microsoft Learn

ReaderWriterLockSlim Class Definition

Represents a lock that is used to manage access to a resource, allowing multiple threads for reading or exclusive access for writing.

public ref class ReaderWriterLockSlim : IDisposable
public class ReaderWriterLockSlim : IDisposable
type ReaderWriterLockSlim = class
    interface IDisposable
Public Class ReaderWriterLockSlim
Implements IDisposable
Inheritance
Implements

For more information about this API, see Supplemental API remarks for ReaderWriterLockSlim.

Constructors Properties CurrentReadCount

Gets the total number of unique threads that have entered the lock in read mode.

IsReadLockHeld

Gets a value that indicates whether the current thread has entered the lock in read mode.

IsUpgradeableReadLockHeld

Gets a value that indicates whether the current thread has entered the lock in upgradeable mode.

IsWriteLockHeld

Gets a value that indicates whether the current thread has entered the lock in write mode.

RecursionPolicy

Gets a value that indicates the recursion policy for the current ReaderWriterLockSlim object.

RecursiveReadCount

Gets the number of times the current thread has entered the lock in read mode, as an indication of recursion.

RecursiveUpgradeCount

Gets the number of times the current thread has entered the lock in upgradeable mode, as an indication of recursion.

RecursiveWriteCount

Gets the number of times the current thread has entered the lock in write mode, as an indication of recursion.

WaitingReadCount

Gets the total number of threads that are waiting to enter the lock in read mode.

WaitingUpgradeCount

Gets the total number of threads that are waiting to enter the lock in upgradeable mode.

WaitingWriteCount

Gets the total number of threads that are waiting to enter the lock in write mode.

Methods Thread Safety

This type is thread safe.

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4