예제 #1
0
파일: JobHandle.cs 프로젝트: knah/VRCMods
 private void ReleaseUnmanagedResources()
 {
     if (myJobHandle != IntPtr.Zero)
     {
         InteropMethods.CloseHandle(myJobHandle);
     }
     myJobHandle = IntPtr.Zero;
 }
예제 #2
0
        private void ReleaseUnmanagedResources()
        {
            if (myProcessHandle != IntPtr.Zero)
            {
                InteropMethods.CloseHandle(myProcessHandle);
            }
            myProcessHandle = IntPtr.Zero;

            if (myThreadHandle != IntPtr.Zero)
            {
                InteropMethods.CloseHandle(myThreadHandle);
            }
            myThreadHandle = IntPtr.Zero;
        }