public void WaitForWork() { var pfd = new PollFileDescriptor() { Events = PollEvents.POLLIN, Fd = _rxFileDescriptor, }; var result = Poll(ref pfd, 1, -1); if (result < 0) { ExceptionHelper.ThrowInvalidOperation("Error on poll"); } }
internal static extern int Poll(ref PollFileDescriptor pollfd, int numberOfFileDescriptors, int timeout);