diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-05-01 10:26:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-05-01 10:26:04 -0400 |
commit | 0d8604c76306ea95e7918af67cf268d630aea941 (patch) | |
tree | ea23c55dd3f94d550758248bb031cc5e3869520c /src/or/control.h | |
parent | b0224bf7282f2ec968a46e35a2a8dab1ddaf0667 (diff) | |
download | tor-0d8604c76306ea95e7918af67cf268d630aea941.tar.gz tor-0d8604c76306ea95e7918af67cf268d630aea941.zip |
Give queued_events_flush_all() responsibility for flushing log cbs
This requires that when a log cb happens, the event for flushing
queued events is scheduled, so we also add the necessary machinery
to have that happen.
Note that this doesn't actually help with logs from outside the main
thread, but those were already suppressed: see #25987 for a ticket
tracking that issue.
Diffstat (limited to 'src/or/control.h')
-rw-r--r-- | src/or/control.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/control.h b/src/or/control.h index 2f312a6638..7f8a0bdb5f 100644 --- a/src/or/control.h +++ b/src/or/control.h @@ -60,6 +60,7 @@ int control_event_conn_bandwidth(connection_t *conn); int control_event_conn_bandwidth_used(void); int control_event_circuit_cell_stats(void); void control_event_logmsg(int severity, uint32_t domain, const char *msg); +void control_event_logmsg_pending(void); int control_event_descriptors_changed(smartlist_t *routers); int control_event_address_mapped(const char *from, const char *to, time_t expires, const char *error, |