Oh good! I'll have to do some research at some point to find out if this is literally the same thing as the os_lock that the Obj-C runtime uses, but either way, I'm glad it's available now.
Re:On mutex performance and WTF::Lock
by LeoNatan25 on Monday April 03, 2017 @03:56AM
(#14021236)
It uses the same private API (or at least, what you described in your previous post).
https://developer.apple.com/reference/os/os_unfair_lock