mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
collector: set unlikely for pthread_once()
This commit is contained in:
committed by
Philip Withnall
parent
5d20c3f6cf
commit
484bc328ee
@ -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 ();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user