[libc-commits] [libc] [libc] rework mutex (PR #92168)

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Tue May 14 14:58:59 PDT 2024


SchrodingerZhu wrote:

> I'm wondering if it's better to do CAS during spinning.

Implementation of CAS typically generates a write event regardless of comparison. CAS loop may lead to significantly more cache controller events.

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


More information about the libc-commits mailing list