public void Free(ArraySegment <byte> _buffer) { lock (_allocator) { _allocator.Free(_buffer.Offset / BlockSize); _event.Set(); } }
public void Free(ArraySegment <byte> buffer) { lock (locker) { _allocator.Free(buffer.Offset / BlockSize); Monitor.PulseAll(locker); } }