mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 08:51:04 +00:00

To avoid real or apparent races to the list of marker schema functions, some bits of the atomic count are used to effectively implement a RWLock, so that any number of threads can add their own new marker schema concurrently, while the profile-capture reading of the whole list can only be done on its own. Differential Revision: https://phabricator.services.mozilla.com/D157310