ReleaseBuffer() публичный Метод

public ReleaseBuffer ( RioBufferSegment buffer ) : void
buffer RioBufferSegment
Результат void
Пример #1
0
 public void Dispose()
 {
     Interlocked.Exchange(ref _awaitableState, _awaitableIsNotCompleted);
     _manualResetEvent.Reset();
     disposeOnComplete      = false;
     SegmentPointer->Length = TotalLength;
     _pool.ReleaseBuffer(this);
 }
Пример #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);
 }
Пример #3
0
 public void Dispose()
 {
     AutoFree = true;
     SegmentPointer->Length = TotalLength;
     _pool.ReleaseBuffer(this);
 }