3 ms·
Last commit was earlier this year for a Monterey release: https://github.com/apple-oss-distributions/xnu https://github.com/apple-oss-distributions/xnu. The nex
by saagarjha 4y ago
Last commit was earlier this year for a Monterey release: https://github.com/apple-oss-distributions/xnu https://github.com/apple-oss-distributions/xnu. The next one will almost certainly be for the first build of Ventura. Here is the header for the (private) function os_unfair_lock_lock_with_options: https://github.com/apple-oss-distributions/libplatform/blob/265976204fef993fd699fb97e874fcc9d5a95e4b/private/os/lock_private.h#L315 https://github.com/apple-oss-distributions/libplatform/blob/.... Synchronization primitives happen to be one of the things Apple is pretty good about releasing the source to.
- cbsmith 4y agoAhah! We were both looking in the wrong place, as we both only found the declarations, not the definition. With your pointer, I was able to find it though: https://github.com/apple-oss-distributions/libplatform/blob/265976204fef993fd699fb97e874fcc9d5a95e4b/src/os/lock.c#L613 https://github.com/apple-oss-distributions/libplatform/blob/... So perhaps I am wrong. I was always under the impression that you couldn't count on Darwin to be representative of how iOS/OSX work anymore, but maybe I'm wrong.