/// <summary cref="DisposeBase.Dispose(bool)"/> protected override void Dispose(bool disposing) { if (queuePtr != IntPtr.Zero) { CLException.ThrowIfFailed( CLAPI.ReleaseCommandQueue(queuePtr)); } queuePtr = IntPtr.Zero; }