[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] Program halt after add event
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] Program halt after add event
- From: Michael <michaelxmail@xxxxxxxxx>
- Date: Thu, 6 Sep 2012 16:24:08 -0600
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Thu, 06 Sep 2012 18:24:52 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=Ftx0p5LA6FmTVMmv13I8JVQmm4CpXfOqqIzgC20EIZw=; b=AJyNcajy6stpZauvJ8xtY7pwvM2ZQg3RqDYAtPZZZEeg1yDL1sdxwvrRXWulirwwfY 9XLADlcl1h8hh2h2CAya0PTsYOo0CJc3pBTQHOxhsIqZ8RbdyGIKKWbsLxS3DpwDQMaV vYpQ4oQ/0A81RcFKXK/qyl1qciVFffPHekNx5K6N14h5OyrltpQc7rMACdX5ApUA55mv iIjHb+0NxRws6oH71Fb5D9Uy8Mvb/gYHg6m987L4SA6GD3Fdz9JJdusAjO33s1FSuubH q22QRZpRUGYlM0gAYLjUmlGmnlnrpgJl1spEDeSHmJTE8rE1oPSrz/F7onVcBxufFBmS OMLQ==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
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_add(), event_base_dispatch() , it
works fine.
But I noticed that after I called the event_add(), the thread will
halt, after executed the time-out callback function, it will execute the
following instructions.
for example:Â the program will not execute to 'instruction 1' until it has executed the timer callback function.
event_add();Â //set the timer value
instruntion 1;
Is there some functions I need to call to change to non-halt ?Â
Thanks!