diff options
author | Mark Ellzey <mark.thomas@mandiant.com> | 2011-07-12 12:25:41 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-03-22 11:57:04 -0400 |
commit | 041ca00c754eed316b7e3066613abee620aae9b5 (patch) | |
tree | 7c49e7b12dff949d15784dc4cc5150727a820a20 /util-internal.h | |
parent | 24dab0b3597a4062d479ce8ee38dc6abf81b9e57 (diff) | |
download | libevent-041ca00c754eed316b7e3066613abee620aae9b5.tar.gz |
Add a new libevent_global_shutdown() to free all globals before exiting.
Mark Ellzey added a function libevent_shutdown() which calls a set of
private functions:
* event_free_globals()
* event_free_debug_globals()
* event_free_debug_globals_locks()
* event_free_evsig_globals()
* evsig_free_globals()
* evsig_free_globals_locks()
* evutil_free_globals()
* evutil_free_secure_rng_globals()
* evutil_free_secure_rng_globals_lock()
Nick tweaked this libevent global shutdown code:
- rename the function to emphasize that it's for global resources
- write more in the doxygen
- make function brace style consistent
- add a missing void in a function definition.
Diffstat (limited to 'util-internal.h')
-rw-r--r-- | util-internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util-internal.h b/util-internal.h index 7117460c..508eae92 100644 --- a/util-internal.h +++ b/util-internal.h @@ -347,6 +347,9 @@ int evutil_hex_char_to_int_(char c); void evutil_usleep_(const struct timeval *tv); +void evutil_free_secure_rng_globals_(void); +void evutil_free_globals_(void); + #ifdef _WIN32 HANDLE evutil_load_windows_system_library_(const TCHAR *library_name); #endif |