mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
test/regress: fix bufferevent_pair_release_lock with EVENT_DEBUG_MODE
Before this patch you will see next error: $ EVENT_DEBUG_MODE= regress --no-fork bufferevent/bufferevent_pair_release_lock bufferevent/bufferevent_pair_release_lock: [err] evthread initialization must be called BEFORE anything else!
This commit is contained in:
parent
4637aa8841
commit
6ea66554df
@ -278,6 +278,9 @@ static void lock_unlock_free_thread_cbs(void)
|
||||
{
|
||||
event_base_free(NULL);
|
||||
|
||||
if (libevent_tests_running_in_debug_mode)
|
||||
libevent_global_shutdown();
|
||||
|
||||
/** drop immutable flag */
|
||||
evthread_set_lock_callbacks(NULL);
|
||||
/** avoid calling of event_global_setup_locks_() for new cbs */
|
||||
|
Loading…
x
Reference in New Issue
Block a user