diff options
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, |