Пример #1
0
        public void Start()
        {
            port   = CompletionInterop.CreateIoCompletionPort(new IntPtr(-1), IntPtr.Zero, 0, 0);
            thread = new Thread(Execute);

            thread.Start();
        }
Пример #2
0
 public void Add(IntPtr handle)
 {
     CompletionInterop.CreateIoCompletionPort(handle, port, (uint)handle.ToInt32(), 0);
 }