mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 1869190: Add threadsafety annotations to Bench.cpp r=xpcom-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D195985
This commit is contained in:
parent
b9ade095dd
commit
65d35bfd22
@ -268,11 +268,11 @@ class BenchCollections : public ::testing::Test {
|
||||
|
||||
private:
|
||||
// Random values used in the benchmarks.
|
||||
static void** sVals;
|
||||
static void** sVals MOZ_GUARDED_BY(sValsMutex);
|
||||
|
||||
// A mutex that protects all benchmark operations, ensuring that two
|
||||
// benchmarks never run concurrently.
|
||||
static StaticMutex sValsMutex MOZ_UNANNOTATED;
|
||||
static StaticMutex sValsMutex;
|
||||
};
|
||||
|
||||
void** BenchCollections::sVals;
|
||||
|
Loading…
Reference in New Issue
Block a user