Skip to content

Commit d70fd08

Browse files
committed
add comment about emulation deficiencies
1 parent 6ca9d0f commit d70fd08

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/shims/unix/macos/sync.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
//! For `os_unfair_lock`, see the documentation
44
//! <https://developer.apple.com/documentation/os/synchronization?language=objc>
55
//! and in case of underspecification its implementation
6-
//! <https://github.com/apple-oss-distributions/libplatform/blob/a00a4cc36da2110578bcf3b8eeeeb93dcc7f4e11/src/os/lock.c#L645>
6+
//! <https://github.com/apple-oss-distributions/libplatform/blob/a00a4cc36da2110578bcf3b8eeeeb93dcc7f4e11/src/os/lock.c#L645>.
7+
//!
8+
//! Note that we don't emulate every edge-case behaviour of the locks. Notably,
9+
//! we don't abort when locking a lock owned by a thread that has already exited
10+
//! and we do not detect copying of the lock, but macOS doesn't guarantee anything
11+
//! in that case either.
712
813
use crate::*;
914

0 commit comments

Comments
 (0)