You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Runtime.InteropServices;
- using System.Threading;
-
- namespace Dbcc
- {
- public sealed class SignalProcessor : IDisposable
- {
- private IntPtr _handle = IntPtr.Zero;
-
- protected virtual void Dispose() {
- IntPtr currentEngine = Interlocked.Exchange(ref _handle, IntPtr.Zero);
-
- if (currentEngine != IntPtr.Zero) {
- NativeInterop.Dispose(currentEngine);
- }
- }
- }
- }
|