mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
cac9b1645b
`BaseProfilerMaybeMutex` wraps a `BaseProfilerMutex` inside a `Maybe`. The decision to use a mutex or not is set at construction time. If there is no mutex, all operations do nothing (at the small cost of checking if the mutex is present.) `BaseProfilerMaybeAutoLock` is the recommented RAII object to lock and automatically unlock a `BaseProfilerMaybeMutex` until the end of a block scope. Differential Revision: https://phabricator.services.mozilla.com/D45304 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
android | ||
baseprofiler | ||
build | ||
linker | ||
misc | ||
tests | ||
moz.build |