ReaderWriterLockSlim.RecursiveReadCount Propriedade

Definição

Obtém o número de vezes que o thread atual inseriu o bloqueio no modo de leitura, como uma indicação de recursão.Gets the number of times the current thread has entered the lock in read mode, as an indication of recursion.

public:
 property int RecursiveReadCount { int get(); };
public int RecursiveReadCount { get; }
member this.RecursiveReadCount : int
Public ReadOnly Property RecursiveReadCount As Integer

Valor da propriedade

Int32

0 (zero) se o thread atual não tiver entrado no modo de leitura, 1 se o thread tiver entrado no modo de leitura, mas não o tiver inserido recursivamente, ou n se o thread tiver inserido o bloqueio recursivamente n -1 vezes.0 (zero) if the current thread has not entered read mode, 1 if the thread has entered read mode but has not entered it recursively, or n if the thread has entered the lock recursively n - 1 times.

Comentários

Use essa propriedade somente para fins de depuração, de criação de perfil e de log, e não para controlar o comportamento de um algoritmo.Use this property only for debugging, profiling, and logging purposes, and not to control the behavior of an algorithm. Os resultados podem mudar assim que forem calculados.The results can change as soon as they have been calculated. Portanto, não é seguro tomar decisões com base nessa propriedade.Therefore, it is not safe to make decisions based on this property.

Aplica-se a