Skip to content

Commit a23ea8c

Browse files
committed
ensure root_queues are initialized before main thread exits
1 parent 2c9f19e commit a23ea8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/queue.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5844,6 +5844,9 @@ _dispatch_main_queue_callback_4CF(
58445844
void
58455845
dispatch_main(void)
58465846
{
5847+
dispatch_once_f(&_dispatch_root_queues_pred, NULL,
5848+
_dispatch_root_queues_init_once);
5849+
58475850
#if HAVE_PTHREAD_MAIN_NP
58485851
if (pthread_main_np()) {
58495852
#endif

0 commit comments

Comments
 (0)