diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-06 16:58:05 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-06 16:58:05 +0000 |
commit | a869574c564440c79a40b0d2019ad0a6c8b24174 (patch) | |
tree | 01d744a063b377e049f87c17ad4c567905db9bdd /src/or/cpuworker.c | |
parent | f76cdc1a611fdbc134cabd1e0d81e7d9d8fd3648 (diff) | |
download | tor-a869574c564440c79a40b0d2019ad0a6c8b24174.tar.gz tor-a869574c564440c79a40b0d2019ad0a6c8b24174.zip |
r17947@catbus: nickm | 2008-02-06 11:57:53 -0500
Fix a bunch of DOCDOC items; document the --quiet flag; refactor a couple of XXXX020 items.
svn:r13405
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r-- | src/or/cpuworker.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index 7d5cf679b5..ff07f21b9f 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -431,10 +431,13 @@ cull_wedged_cpuworkers(void) }); } -/** If cpuworker is defined, assert that he's idle, and use him. Else, - * look for an idle cpuworker and use him. If none idle, queue task onto - * the pending onion list and return. - * DOCDOC this function is now less general +/** Try to tell a cpuworker to perform the public key operations necessary to + * respond to <b>onionskin</b> for the circuit <b>circ</b>. + * + * If <b>cpuworker</b> is defined, assert that he's idle, and use him. Else, + * look for an idle cpuworker and use him. If none idle, queue task onto the + * pending onion list and return. Return 0 if we successfully assign the + * task, or -1 on failure. */ int assign_onionskin_to_cpuworker(connection_t *cpuworker, |