public ByteArrayListStream() { // Initially we have nothing to read so Reads should be parked readStreamLock = AsyncLock.CreateLocked(out lockRelease); }
internal Releaser(AsyncLock toRelease) { m_toRelease = toRelease; }
public ByteArrayListStream() { // Initially we have nothing to read so Reads should be parked readStreamLock = AsyncLock.CreateLocked(out lockRelease); }
public static AsyncLock CreateLocked(out IDisposable releaser) { var asyncLock = new AsyncLock(true); releaser = asyncLock.m_releaser.Result; return asyncLock; }
internal Releaser(AsyncLock toRelease) { m_toRelease = toRelease; }