[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r9238: Add a comment about a possible refactoring in main.c (in tor/trunk: . src/or)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r9238: Add a comment about a possible refactoring in main.c (in tor/trunk: . src/or)
- From: nickm@xxxxxxxx
- Date: Tue, 2 Jan 2007 15:07:55 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Tue, 02 Jan 2007 15:08:03 -0500
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Author: nickm
Date: 2007-01-02 15:07:54 -0500 (Tue, 02 Jan 2007)
New Revision: 9238
Modified:
tor/trunk/
tor/trunk/src/or/main.c
Log:
r11786@Kushana: nickm | 2007-01-02 14:32:54 -0500
Add a comment about a possible refactoring in main.c
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r11786] on c95137ef-5f19-0410-b913-86e773d04f59
Modified: tor/trunk/src/or/main.c
===================================================================
--- tor/trunk/src/or/main.c 2007-01-02 17:40:42 UTC (rev 9237)
+++ tor/trunk/src/or/main.c 2007-01-02 20:07:54 UTC (rev 9238)
@@ -956,6 +956,9 @@
static void
second_elapsed_callback(int fd, short event, void *args)
{
+ /* XXXX This could be sensibly refactored into multiple callbacks, and we
+ * could use libevent's timers for this rather than checking the current
+ * time against a bunch of timeouts every second. */
static struct timeval one_second;
static long current_second = 0;
struct timeval now;