Converted to lock blocks

This commit is contained in:
Yoshi Askharoun
2021-12-23 22:40:40 -06:00
parent 0502215213
commit 4e49c93747
26 changed files with 234 additions and 459 deletions
+8
View File
@@ -41,6 +41,14 @@ internal unsafe class CComPtrNtv<TPtr> : IDisposable where TPtr : unmanaged
}
}
public ref TPtr* GetPinnableReference()
{
fixed (TPtr** ptr = &p)
{
return ref *ptr;
}
}
protected virtual void Dispose(bool disposing)
{
if (!disposedValue)