コード例 #1
0
        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");
            }
        }
コード例 #2
0
 internal static extern int Poll(ref PollFileDescriptor pollfd, int numberOfFileDescriptors, int timeout);