diff --git a/evthread_pthread.c b/evthread_pthread.c index 0614a066..00018d4a 100644 --- a/evthread_pthread.c +++ b/evthread_pthread.c @@ -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);