[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] Threading concerns
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] Threading concerns
- From: Donghua Xu <donghua@xxxxxxxxx>
- Date: Sun, 29 Nov 2009 23:18:19 -0500
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Sun, 29 Nov 2009 23:25:25 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=/ClfKyYSUuUbaeUselbVnFT7Ve4PYEZhd5Jrwu0drEE=; b=aD2eKmj2ACNBoCOOGNpZa0IuRh4919tHlf4bVMdsS7ypiEteSxVGkLY39bBUXotrfM sJunuAvs/Uqpng4A/mwQxX6uv55g5OAAN47R5PBSV4U6ysIwmYOg85k9thb69+SwsUBY ni0U66gTGcvtDg3pmMqdbfQbtYc8Gt7xD2Wog=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=VFmlkYm5S/7pfqk8cwuIa8rRrneaCoJp45QQ64M2HxqiKNd9tbf/lXroaorJrTPrZL +gX68EEj4gVL47JHEQST9NMOF3sO4tUi0yMTA4KANmYkvyyjRDzNJCfVWLUOTFVZA9Qf AzseI4QI6EY5AOpxneB3jDqD1069UEaeLTlUg=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Hi,
Sorry if this is a stupid question. But I have not found a clear
answer in the documentations. I am just beginning to look into using
libevent for our project. We will need to schedule millions of timed
events, and thousands of them may be triggered at the same time. So we
have to use thread pool to handle all these events. Let's say we have
10 threads running at the same time, so how do I know which thread
will the call-back function be running when an event is triggered? Is
it always the thread that calls event_base_set() for the event? Or
could it be some other thread?
Thanks a lot in advance.
-Donghua
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.