예제 #1
0
 private void Dispose(bool disposing)
 {
     Marshal.FreeHGlobal((IntPtr)_pixels);
     _pixels = null;
     _width  = 0;
     _height = 0;
     _token  = 0;
     if (disposing)
     {
         _token = _tokenFactory.CreateNonZeroToken();
         ChainInstancePool <DefaultImageSource> .ReturnInstanceFast(this);
     }
 }
예제 #2
0
 private static void Return(FrameTimingAwaitableTaskSource source)
 {
     source._awaitableCore = default;
     ChainInstancePool <FrameTimingAwaitableTaskSource> .ReturnInstanceFast(source);
 }