Threading Threading
Threading Threading
DocFX + Singulink = ♥

Search Results for

    Method TryEnterWriteGuard

    TryEnterWriteGuard(int)

    Tries to enter the lock in write mode within the given timeout, returning a guard whose IsEntered property indicates whether the lock was entered. Disposal releases the lock, or is a no-op if the lock was not entered.

    Declaration
    public WriteGuard TryEnterWriteGuard(int millisecondsTimeout)
    Parameters
    Type Name Description
    int millisecondsTimeout

    The number of milliseconds to wait, or Infinite (-1) to wait indefinitely.

    Returns
    Type Description
    WriteGuard

    TryEnterWriteGuard(TimeSpan)

    Tries to enter the lock in write mode within the given timeout, returning a guard whose IsEntered property indicates whether the lock was entered. Disposal releases the lock, or is a no-op if the lock was not entered.

    Declaration
    public WriteGuard TryEnterWriteGuard(TimeSpan timeout)
    Parameters
    Type Name Description
    TimeSpan timeout

    The amount of time to wait, or InfiniteTimeSpan to wait indefinitely.

    Returns
    Type Description
    WriteGuard
    © Singulink. All rights reserved.