public ReleaseBuffer ( |
||
buffer | ||
return | void |
public void Dispose() { Interlocked.Exchange(ref _awaitableState, _awaitableIsNotCompleted); _manualResetEvent.Reset(); disposeOnComplete = false; SegmentPointer->Length = TotalLength; _pool.ReleaseBuffer(this); }
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); }
public void Dispose() { AutoFree = true; SegmentPointer->Length = TotalLength; _pool.ReleaseBuffer(this); }