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