/// <summary>deactivate the memory block, removing it from RAM but leaving it immediately available to swap back in</summary> /// <exception cref="InvalidOperationException"> /// <see cref="MemoryBlock.Active"/> is <see langword="false"/> or failed to unmap file view /// </exception> public void Deactivate() { if (!Active) { throw new InvalidOperationException("Not active"); } _pal.Deactivate(); Active = false; }
/// <summary>deactivate the memory block, removing it from RAM but leaving it immediately available to swap back in</summary> /// <exception cref="InvalidOperationException"> /// <see cref="MemoryBlock.Active"/> is <see langword="false"/> or failed to unmap file view /// </exception> public void Deactivate() { EnsureActive(); if (_sealed) { _pal.GetWriteStatus(_dirtydata, _pageData); } _pal.Deactivate(); Active = false; }
/// <summary>deactivate the memory block, removing it from RAM but leaving it immediately available to swap back in</summary> /// <exception cref="InvalidOperationException"> /// <see cref="MemoryBlock.Active"/> is <see langword="false"/> or failed to unmap file view /// </exception> public void Deactivate() { EnsureActive(); _pal.Deactivate(); Active = false; }