nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqt8hz3mdqs2gchhr7d6u6nh666keyxzv0ycmmwjavs2h68lpg9wlsvs4heg (nprofile…4heg) It’s logically similar but not quite. Here’s nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqm4nsq9dds3k0wt60zuy57fqz79gm8f8j3nucm7y05jptu80agt3sy4atz4 (nprofile…atz4) with more than you ever wanted to know about it:
https://www.mikeash.com/pyblog/friday-qa-2014-06-06-secrets-of-dispatch_once.html
(Long story short—pthread_once takes an OS lock and will block in the kernel. This isn’t needed for dispatch_once so it uses atomic operations to achieve the same result)