use utils::Mutex instead of std::mutex for Allocators locking policy
on Android it's about 2x faster and uses much less instructions, which is better for i-cache pressure.
This commit is contained in:
committed by
Mathias Agopian
parent
785ce645e2
commit
42a3d5ea33
@@ -27,6 +27,7 @@
|
||||
|
||||
#include <utils/compiler.h>
|
||||
#include <utils/memalign.h>
|
||||
#include <utils/Mutex.h>
|
||||
|
||||
namespace utils {
|
||||
|
||||
@@ -468,7 +469,7 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
using Mutex = std::mutex;
|
||||
using Mutex = utils::Mutex;
|
||||
|
||||
} // namespace LockingPolicy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user