ReleaseBuffer() public method

public ReleaseBuffer ( RioBufferSegment buffer ) : void
buffer RioBufferSegment
return void
Esempio n. 1
0
 public void Dispose()
 {
     Interlocked.Exchange(ref _awaitableState, _awaitableIsNotCompleted);
     _manualResetEvent.Reset();
     disposeOnComplete      = false;
     SegmentPointer->Length = TotalLength;
     _pool.ReleaseBuffer(this);
 }
Esempio n. 2
0
 void Disposeinternal()
 {
     Debug.Assert(InUse);
     pendingContinuation = null;
     Interlocked.Exchange(ref _awaitableState, _notStarted);
     _internalCompletionSignal = emptyCompletion;
     SegmentPointer->Length    = 0;
     _disposeEvent.Set();
     _blockingEvent.Set();
     _completeEvent.Set();
     _pool.ReleaseBuffer(this);
 }
Esempio n. 3
0
 public void Dispose()
 {
     AutoFree = true;
     SegmentPointer->Length = TotalLength;
     _pool.ReleaseBuffer(this);
 }