simplify init function

pull/50/head
Daniel Micay 2018-09-11 14:12:27 -04:00
parent 433af6d4ba
commit ef098fea06
1 changed files with 2 additions and 4 deletions

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