forked from mirrors/gecko-dev
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue