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)); }
public void ScheduleAsyncAcceptPoll(int socket) { _asyncOperationQueue.Enqueue(AsyncOperation.PollAcceptFrom(socket)); _unblockHandle.UnblockIfRequired(); }