Tor
0.4.7.0-alpha-dev
|
#include <alertsock.h>
Data Fields | |
tor_socket_t | read_fd |
tor_socket_t | write_fd |
int(* | alert_fn )(tor_socket_t write_fd) |
int(* | drain_fn )(tor_socket_t read_fd) |
Helper type used to manage waking up the main thread while it's in the libevent main loop. Used by the work queue code.
Definition at line 21 of file alertsock.h.
int(* alert_fn) (tor_socket_t write_fd) |
Function to alert the main thread
Definition at line 30 of file alertsock.h.
Referenced by alert_sockets_close().
int(* drain_fn) (tor_socket_t read_fd) |
Function to make the main thread no longer alerted.
Definition at line 32 of file alertsock.h.
tor_socket_t read_fd |
Socket that the main thread should listen for EV_READ events on. Note that this socket may be a regular fd on a non-Windows platform.
Definition at line 26 of file alertsock.h.
Referenced by alert_sockets_close().
tor_socket_t write_fd |
Socket to use when alerting the main thread.
Definition at line 28 of file alertsock.h.
Referenced by alert_sockets_close().