1 karma · joined May 10, 2016 (10y ago) · 3 submissions
comment 10y ago · link · parent
2) in addition to what Phil already said (which is that there's no priority inversion for Safari/WebKit to have as all threads taking these locks have the same priority to boot), the private lock you're talking about, named the handoff lock, has terrible unlock patterns, and is why it performs so poorly when WTF::Lock benched it.
comment 10y ago · link · parent
Also on a contended lock, there's a very strong possibility that you will decide that the lock can be taken right before you block.
On intel of course, it doesn't matter.
comment 10y ago · link · parent
I very very much doubt that linux implementation is that different (I'm actually fairly confident pthread_mutex on linux and OS X El Capitan+ are mostly on par)