aboutsummaryrefslogtreecommitdiff
path: root/src/or/cpuworker.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-05-10 10:27:54 +0000
committerRoger Dingledine <arma@torproject.org>2004-05-10 10:27:54 +0000
commit3cdf2d67da5f2cd3529ffec9907fa910c0b0208c (patch)
tree812a91531b2e0c1b097ff8ac982017a7907ac7c6 /src/or/cpuworker.c
parent07871a8a2c3fc4f6a290961dc371b6e8d44ed69a (diff)
downloadtor-3cdf2d67da5f2cd3529ffec9907fa910c0b0208c.tar
tor-3cdf2d67da5f2cd3529ffec9907fa910c0b0208c.tar.gz
it's amazing what a bit of punctuation can do for appearances
svn:r1843
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r--src/or/cpuworker.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c
index d77c05b13..180b07e1a 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -1,4 +1,4 @@
-/* Copyright 2003 Roger Dingledine. */
+/* Copyright 2003-2004 Roger Dingledine. */
/* See LICENSE for licensing information */
/* $Id$ */
@@ -11,27 +11,27 @@
**/
#include "or.h"
-extern or_options_t options; /**< command-line and config-file options */
+extern or_options_t options; /* command-line and config-file options */
-/** The maximum number of cpuworker processes we will keep around */
+/** The maximum number of cpuworker processes we will keep around. */
#define MAX_CPUWORKERS 16
-/** The minimum number of cpuworker processes we will keep around */
+/** The minimum number of cpuworker processes we will keep around. */
#define MIN_CPUWORKERS 1
-/** The tag specifies which circuit this onionskin was from */
+/** The tag specifies which circuit this onionskin was from. */
#define TAG_LEN 8
/** How many bytes are sent from tor to the cpuworker? */
#define LEN_ONION_QUESTION (1+TAG_LEN+ONIONSKIN_CHALLENGE_LEN)
/** How many bytes are sent from the cpuworker back to tor? */
#define LEN_ONION_RESPONSE (1+TAG_LEN+ONIONSKIN_REPLY_LEN+40+32)
-/** How many cpuworkers we have running right now */
+/** How many cpuworkers we have running right now. */
static int num_cpuworkers=0;
-/** How many of the running cpuworkers have an assigned task right now */
+/** How many of the running cpuworkers have an assigned task right now. */
static int num_cpuworkers_busy=0;
/** We need to spawn new cpuworkers whenever we rotate the onion keys
* on platforms where execution contexts==processes. This variable stores
- * the last time we got a key rotation event.*/
+ * the last time we got a key rotation event. */
static time_t last_rotation_time=0;
int cpuworker_main(void *data);
@@ -312,7 +312,7 @@ static void spawn_enough_cpuworkers(void) {
}
}
-/** Take a pending task from the queue and assign it to 'cpuworker' */
+/** Take a pending task from the queue and assign it to 'cpuworker'. */
static void process_pending_task(connection_t *cpuworker) {
circuit_t *circ;