mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 03:44:22 -04:00
Add a prototype for event_disable_debug_mode()
Exporting this function seems rather useless, as debugging mode has to be enabled early and calling this function doesn't allow it to get toggled back on later. Fixes a compile warning when using clang 3.6. Fixes #271 Fixes #224
This commit is contained in:
parent
714fc70500
commit
bfcedee038
@ -465,6 +465,13 @@ void event_base_assert_ok_nolock_(struct event_base *base);
|
||||
int event_base_foreach_event_nolock_(struct event_base *base,
|
||||
event_base_foreach_event_cb cb, void *arg);
|
||||
|
||||
/* Cleanup function to reset debug mode during shutdown.
|
||||
*
|
||||
* Calling this function doesn't mean it'll be possible to re-enable
|
||||
* debug mode if any events were added.
|
||||
*/
|
||||
void event_disable_debug_mode(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user