[Openmp-commits] [openmp] [OpenMP] Improve performance of ticket lock (x86) (PR #143557)
via Openmp-commits
openmp-commits at lists.llvm.org
Sun Jul 20 08:39:59 PDT 2025
https://github.com/jprotze approved this pull request.
I think, having the KMP_YIELD macro in the commit message would make it easier to understand the actual problem when just looking at the diff of the patch. After checking the define the issue is clear and the patch LGTM.
``` C
#define KMP_YIELD(cond) \
{ \
KMP_CPU_PAUSE(); \
if ((cond) && (KMP_TRY_YIELD)) \
__kmp_yield(); \
}
```
https://github.com/llvm/llvm-project/pull/143557
More information about the Openmp-commits
mailing list