In routerlist_assert_ok(), check r2 before taking &(r2->cache_info)
[tor.git] / src / or / cpuworker.h
blob317cef43ba641defd613cab6734f700f3635b430
1 /* Copyright (c) 2001 Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2013, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
7 /**
8 * \file cpuworker.h
9 * \brief Header file for cpuworker.c.
10 **/
12 #ifndef TOR_CPUWORKER_H
13 #define TOR_CPUWORKER_H
15 void cpu_init(void);
16 void cpuworkers_rotate(void);
17 int connection_cpu_finished_flushing(connection_t *conn);
18 int connection_cpu_reached_eof(connection_t *conn);
19 int connection_cpu_process_inbuf(connection_t *conn);
20 struct create_cell_t;
21 int assign_onionskin_to_cpuworker(connection_t *cpuworker,
22 or_circuit_t *circ,
23 struct create_cell_t *onionskin);
25 uint64_t estimated_usec_for_onionskins(uint32_t n_requests,
26 uint16_t onionskin_type);
27 void cpuworker_log_onionskin_overhead(int severity, int onionskin_type,
28 const char *onionskin_type_name);
30 #endif