11 references to StreamInUse
System.Net.Security (11)
System\Net\Security\SslStream.cs (2)
750
if (Interlocked.Exchange(ref _nestedRead, NestedState.
StreamInUse
) == NestedState.
StreamInUse
)
System\Net\Security\SslStream.IO.cs (9)
177
if (Interlocked.CompareExchange(ref _nestedAuth, NestedState.
StreamInUse
, NestedState.StreamNotInUse) != NestedState.StreamNotInUse)
183
if (Interlocked.CompareExchange(ref _nestedRead, NestedState.
StreamInUse
, NestedState.StreamNotInUse) != NestedState.StreamNotInUse)
190
if (Interlocked.Exchange(ref _nestedWrite, NestedState.
StreamInUse
) != NestedState.StreamNotInUse)
274
if (Interlocked.Exchange(ref _nestedAuth, NestedState.
StreamInUse
) == NestedState.
StreamInUse
)
588
if (_nestedAuth != NestedState.
StreamInUse
)
849
if (Interlocked.CompareExchange(ref _nestedRead, NestedState.
StreamInUse
, NestedState.StreamNotInUse) != NestedState.StreamNotInUse)
1015
if (Interlocked.Exchange(ref _nestedWrite, NestedState.
StreamInUse
) == NestedState.
StreamInUse
)