fix evthread_use_pthreads_with_flags dead lock when first return

This commit is contained in:
moonlightsh 2021-07-16 10:21:06 +08:00
parent c5642697e7
commit c29f1dbe11

View File

@ -215,6 +215,7 @@ evthread_use_pthreads_with_flags(int flags)
evthread_set_id_callback(evthread_posix_get_id);
once_init = 1;
pthread_mutex_unlock(&once_init_lock);
return 0;
error:
pthread_mutex_unlock(&once_init_lock);