[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Timerout procedure can't enter twice



Thanks, it works.

Michael

On Tue, Sep 11, 2012 at 3:57 PM, Nick Mathewson <nickm@xxxxxxxxxxxxx> wrote:
On Tue, Sep 11, 2012 at 5:54 PM, Michael <michaelxmail@xxxxxxxxx> wrote:
> Hi ,
>
> I'm using libevent to create timer procedure.
>
> The attached program will call the timeout function at the first time.
>
> But it won't call the timeout function after I rewrite the timer.
>
> Attached please find the test code.
>
> Is there anything I'm missing ?

You're not calling event_base_dispatch after you "rewrite" the timer.
There's no event loop running then.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users  Âin the body.