collector: set unlikely for pthread_once()

This commit is contained in:
Christian Hergert
2020-07-02 15:20:06 -07:00
committed by Philip Withnall
parent 5d20c3f6cf
commit 484bc328ee

View File

@ -475,7 +475,7 @@ collector_init_cb (void)
void
sysprof_collector_init (void)
{
if (pthread_once (&collector_init, collector_init_cb) != 0)
if SYSPROF_UNLIKELY (pthread_once (&collector_init, collector_init_cb) != 0)
abort ();
}