mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
fix evthread_use_pthreads_with_flags dead lock when first return
This commit is contained in:
parent
c5642697e7
commit
c29f1dbe11
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user