18 references to LockCookie
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1136
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.
LockCookie
))]
netstandard (1)
netstandard.cs (1)
2085
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.
LockCookie
))]
System.Threading (16)
System\Threading\LockCookie.cs (7)
12
public struct LockCookie : IEquatable<
LockCookie
>
23
obj is
LockCookie
other && Equals(other);
25
public bool Equals(
LockCookie
obj) =>
31
public static bool operator ==(
LockCookie
a,
LockCookie
b) => a.Equals(b);
33
public static bool operator !=(
LockCookie
a,
LockCookie
b) => !a.Equals(b);
System\Threading\ReaderWriterLock.cs (9)
22
/// <see cref="RestoreLock(ref
LockCookie
)"/> restores the lock state.
666
public
LockCookie
UpgradeToWriterLock(int millisecondsTimeout)
670
LockCookie
lockCookie = default;
743
public
LockCookie
UpgradeToWriterLock(TimeSpan timeout) => UpgradeToWriterLock(ToTimeoutMilliseconds(timeout));
745
public void DowngradeFromWriterLock(ref
LockCookie
lockCookie)
872
public
LockCookie
ReleaseLock()
874
LockCookie
lockCookie = default;
911
public void RestoreLock(ref
LockCookie
lockCookie)
977
private void RecoverLock(ref
LockCookie
lockCookie, LockCookieFlags flags)