public ThreadQueue(IEventLoop the_loop) { loop = the_loop; evt = Native.Factory.CreateWaitEvent(); msg_src = loop.AddWatch(evt.Handle, WatchEventKind.In, OnPingReceived); }