コード例 #1
0
 public ByteArrayListStream()
 {
     // Initially we have nothing to read so Reads should be parked
     readStreamLock = AsyncLock.CreateLocked(out lockRelease);
 }
コード例 #2
0
 internal Releaser(AsyncLock toRelease) { m_toRelease = toRelease; }
コード例 #3
0
 public ByteArrayListStream()
 {
     // Initially we have nothing to read so Reads should be parked
     readStreamLock = AsyncLock.CreateLocked(out lockRelease);
 }
コード例 #4
0
 public static AsyncLock CreateLocked(out IDisposable releaser)
 {
     var asyncLock = new AsyncLock(true);
     releaser = asyncLock.m_releaser.Result;
     return asyncLock;
 }
コード例 #5
0
ファイル: AsyncLock.cs プロジェクト: screamatthewind/mobile
 internal Releaser(AsyncLock toRelease)
 {
     m_toRelease = toRelease;
 }