private int OnPollCallback(IntPtr ufds, uint nfds, int timeout) { Monitor.Exit (this); int result = poll (ufds, nfds, timeout); Monitor.Enter (this); return result; }