[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] How to make a eventloop similiar to select() with a timeout of 1sec
On Mon, Jun 24, 2013 at 10:22 AM, åéé <sunyucong@xxxxxxxxx> wrote:
> Hi Nick,
>
> I think you mis-understood my question, I should clarify.
>
> In your example, the loop would run for exactly 1 seconds . and always 1
> second, is my understanding right? But the old behavior in the program that
> uses select() is: however wait for at most 1 seconds. In a busy server
> however there should always be some io work to do , thus it returns
> immediately most of the time.
Ah, if that's what you ant, then putting EVLOOP_ONCE back in should indeed work.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.