Esempio n. 1
0
 public void Dispose()
 {
     MemUtil.Free((IntPtr)NativePointer);
     NativePointer = null;
     GC.SuppressFinalize(this);
 }
Esempio n. 2
0
 public MemoryBarrier()
 {
     NativePointer        = (Unmanaged.MemoryBarrier *)MemUtil.Alloc(typeof(Unmanaged.MemoryBarrier));
     NativePointer->SType = StructureType.MemoryBarrier;
 }