Skip to content

Commit

Permalink
event_free_debug_globals_locks(): disable lock debugging
Browse files Browse the repository at this point in the history
This will allow to use library event after
event_free_debug_globals_locks()/libevent_global_shutdown() without
invalid read/write's.
  • Loading branch information
azat committed Jan 25, 2015
1 parent ccc5593 commit e5c87d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions event.c
Original file line number Diff line number Diff line change
Expand Up @@ -3763,6 +3763,7 @@ event_free_debug_globals_locks(void)
if (event_debug_map_lock_ != NULL) {
EVTHREAD_FREE_LOCK(event_debug_map_lock_, 0);
event_debug_map_lock_ = NULL;
evthreadimpl_disable_lock_debugging_();
}
#endif /* EVENT__DISABLE_DEBUG_MODE */
#endif /* EVENT__DISABLE_THREAD_SUPPORT */
Expand Down

0 comments on commit e5c87d1

Please sign in to comment.