Beispiel #1
0
        public void Free()
        {
            if (_owner != null)
            {
                if (_handle.IsAllocated)
                {
                    _handle.Free();
                }

                _owner.Release();
                _owner = null;
            }
        }
Beispiel #2
0
 public void Dispose()
 {
     _owner.Release(_id);
     _owner = null;
 }
Beispiel #3
0
 internal DisposableReservation(IKnown owner, long id)
 {
     _id    = id;
     _owner = owner;
     _owner.AddReference(_id);
 }