예제 #1
0
        public void AcceptPoll(Ring ring)
        {
            int socket = Socket;

            if (!ring.TryPreparePollAdd(socket, (ushort)POLLIN, AsyncOperation.PollAcceptFrom(socket).AsUlong()))
            {
                _scheduler.ScheduleAcceptPoll(socket);
            }
        }
 public void ScheduleAcceptPoll(int socket)
 {
     _asyncOperationQueue.Enqueue(AsyncOperation.PollAcceptFrom(socket));
 }
예제 #3
0
 public void ScheduleAsyncAcceptPoll(int socket)
 {
     _asyncOperationQueue.Enqueue(AsyncOperation.PollAcceptFrom(socket));
     _unblockHandle.UnblockIfRequired();
 }