diff options
author | Tom <tomut@yahoo.com> | 2020-12-21 23:21:58 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-17 20:30:31 +0100 |
commit | 1d621ab1725d1eba0fafef4575aef72682cd57ad (patch) | |
tree | b30a1d63d09e70722fe04a45c6e96522d3a295bc /Meta | |
parent | 7581b64705ed3c5b3711c956504f278c2ea3899e (diff) | |
download | serenity-1d621ab1725d1eba0fafef4575aef72682cd57ad.zip |
Kernel: Some futex improvements
This adds support for FUTEX_WAKE_OP, FUTEX_WAIT_BITSET, FUTEX_WAKE_BITSET,
FUTEX_REQUEUE, and FUTEX_CMP_REQUEUE, as well well as global and private
futex and absolute/relative timeouts against the appropriate clock. This
also changes the implementation so that kernel resources are only used when
a thread is blocked on a futex.
Global futexes are implemented as offsets in VMObjects, so that different
processes can share a futex against the same VMObject despite potentially
being mapped at different virtual addresses.
Diffstat (limited to 'Meta')
-rw-r--r-- | Meta/CMake/all_the_debug_macros.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Meta/CMake/all_the_debug_macros.cmake b/Meta/CMake/all_the_debug_macros.cmake index 769b1a3955..9290a67a07 100644 --- a/Meta/CMake/all_the_debug_macros.cmake +++ b/Meta/CMake/all_the_debug_macros.cmake @@ -60,6 +60,8 @@ add_compile_definitions("FIFO_DEBUG") add_compile_definitions("FILEDESCRIPTION_DEBUG") add_compile_definitions("FILL_PATH_DEBUG") add_compile_definitions("FORK_DEBUG") +add_compile_definitions("FUTEXQUEUE_DEBUG") +add_compile_definitions("FUTEX_DEBUG") add_compile_definitions("GBOXLAYOUT_DEBUG") add_compile_definitions("GEMINIJOB_DEBUG") add_compile_definitions("GEMINI_DEBUG") |