DescriptionMake mutex semaphore based.
This implementation improves performance of SkMutex acquire / release pair from 42ns -> 13 ns.
SkSharedMutex and SkSpinlock have the same performance.
It also removes specialized windows and linux/mac code.
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/7f0a3d7523377097184309152f883f1fcb12a4b8
Patch Set 1 #Patch Set 2 : first real attempt #Patch Set 3 : Fix constant problem #Patch Set 4 : fix more compiler problems #Patch Set 5 : fix mutex leak #
Messages
Total messages: 30 (15 generated)
|