cpuworker.h 903 B

1234567891011121314151617181920212223242526272829
  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-2016, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file cpuworker.h
  8. * \brief Header file for cpuworker.c.
  9. **/
  10. #ifndef TOR_CPUWORKER_H
  11. #define TOR_CPUWORKER_H
  12. void cpu_init(void);
  13. void cpuworkers_rotate_keyinfo(void);
  14. struct create_cell_t;
  15. int assign_onionskin_to_cpuworker(or_circuit_t *circ,
  16. struct create_cell_t *onionskin);
  17. uint64_t estimated_usec_for_onionskins(uint32_t n_requests,
  18. uint16_t onionskin_type);
  19. void cpuworker_log_onionskin_overhead(int severity, int onionskin_type,
  20. const char *onionskin_type_name);
  21. void cpuworker_cancel_circ_handshake(or_circuit_t *circ);
  22. #endif