mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 12:28:19 -04:00
event_free_debug_globals_locks(): disable lock debugging
This will allow to use library event after event_free_debug_globals_locks()/libevent_global_shutdown() without invalid read/write's.
This commit is contained in:
parent
ccc55937cf
commit
e5c87d18b0
1
event.c
1
event.c
@ -3763,6 +3763,7 @@ event_free_debug_globals_locks(void)
|
|||||||
if (event_debug_map_lock_ != NULL) {
|
if (event_debug_map_lock_ != NULL) {
|
||||||
EVTHREAD_FREE_LOCK(event_debug_map_lock_, 0);
|
EVTHREAD_FREE_LOCK(event_debug_map_lock_, 0);
|
||||||
event_debug_map_lock_ = NULL;
|
event_debug_map_lock_ = NULL;
|
||||||
|
evthreadimpl_disable_lock_debugging_();
|
||||||
}
|
}
|
||||||
#endif /* EVENT__DISABLE_DEBUG_MODE */
|
#endif /* EVENT__DISABLE_DEBUG_MODE */
|
||||||
#endif /* EVENT__DISABLE_THREAD_SUPPORT */
|
#endif /* EVENT__DISABLE_THREAD_SUPPORT */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user