[libc-commits] [libc] [libc] Add Darwin mutex support via os_sync primitives (PR #167722)

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Sun Nov 30 18:37:42 PST 2025


================
@@ -0,0 +1,131 @@
+//===--- Implementation of a Darwin mutex class -----------*- C++-*-===//
----------------
SchrodingerZhu wrote:

I would prefer to lift POSIX/UNIX mutex to a shared design instead of making this platform specific, as most parts of the design should still be the same.

If constants/headers are different, you can add platform macro guards.

https://github.com/llvm/llvm-project/pull/167722


More information about the libc-commits mailing list