implement polite waiting (#685)

* implement polite waiting

* Update src/snmalloc/pal/pal_linux.h

Co-authored-by: Matthew Parkinson <mjp41@users.noreply.github.com>

* fix build issues

* fix more build issues

* support _umtx_op for freebsd

* unify waiting style

* fix

* address CR

Co-authored-by: Matthew Parkinson <mjp41@users.noreply.github.com>

* support macos

* static dispatch os APIs for apple

* make wait_on_address configurable via cmake

* undo extra include

* fix macos build

* fix clang-tidy build

---------

Co-authored-by: Matthew Parkinson <mjp41@users.noreply.github.com>
This commit is contained in:
Schrodinger ZHU Yifan
2024-11-16 02:33:11 -05:00
committed by GitHub
parent fe3fed4414
commit f7fe702f77
9 changed files with 329 additions and 13 deletions

2
.gitignore vendored
View File

@@ -18,3 +18,5 @@ CMakeFiles/
*~
*.sw?
# cache dirs
.cache