simplify init function

This commit is contained in:
Daniel Micay 2018-09-11 14:12:27 -04:00
parent 433af6d4ba
commit ef098fea06

View File

@ -708,11 +708,9 @@ COLD static void init_slow_path(void) {
} }
static inline void init(void) { static inline void init(void) {
if (likely(is_init())) { if (unlikely(!is_init())) {
return; init_slow_path();
} }
init_slow_path();
} }
// trigger early initialization to set up pthread_atfork and protect state as soon as possible // trigger early initialization to set up pthread_atfork and protect state as soon as possible