Thanks, it works.
Michael
On Tue, Sep 11, 2012 at 3:57 PM, Nick Mathewson wrote:
> On Tue, Sep 11, 2012 at 5:54 PM, Michael 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
On Tue, Sep 11, 2012 at 5:54 PM, Michael 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 t
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 ?
Thanks!
Michael
/*
* XXX This sampl
Hi ,
Thanks!
Still the same problem even if I use tv.tv_sec=2;tv.tv_usec=0 .
Michael
On Tue, Sep 11, 2012 at 11:37 AM, Nick Mathewson wrote:
> On Tue, Sep 11, 2012 at 1:28 PM, Michael wrote:
> > Hi,
> >
> > Thanks!
> >
> > Attached please find the test code(3 files):
> >
> > start.c will cre
On Tue, Sep 11, 2012 at 1:28 PM, Michael wrote:
> Hi,
>
> Thanks!
>
> Attached please find the test code(3 files):
>
> start.c will create 2 threads: restart1 and restart2, which will create 1
> timer each.
>
> time1.c for restart1 and
>
> time2.c for restart2.
>
> while compile and execute th
Hi,
Thanks!
Attached please find the test code(3 files):
start.c will create 2 threads: restart1 and restart2, which will create
1 timer each.
time1.c for restart1 and
time2.c for restart2.
while compile and execute the program, restart1 can't execute to line 101
to print the debug messag
> From: Chernyshev Vyacheslav
> Content-Type: text/plain; charset=windows-1251
> Content-Transfer-Encoding: quoted-printable
> Subject: Recommended way of notifying all active sessions
> Message-Id: <42f18941-b6e5-4218-80c6-0b8bd9eb4...@ro.ru>
> Date: Fri, 10 Aug 2012 04:46:34 +0400
> To: libevent
On Thu, Sep 6, 2012 at 6:24 PM, Michael wrote:
> Hi,
>
> I want use libevent as timer management tool in our program. Our program is
> multi-thread , and each thread will use some timer.
>
> I can enter into the call back function after I called the following
> functions: event_assign(), event_