Description:
Introduce a new header-only module Futex and SharedFutex to provide high-performance synchronization primitives based on the Linux futex system call.
While Mutex and SharedMutex rely on the standard POSIX pthread layer, this implementation targets low-latency intra-process and inter-process locking on Linux.
Acceptance Criteria:
- Implement Futex for low latency intra-process locking using FUTEX_WAIT_PRIVATE and FUTEX_WAKE_PRIVATE.
- Implement SharedFutex for inter-process locking over shared memory (mmap) using FUTEX_WAIT and FUTEX_WAKE.
- Both classes must satisfy the Lockable concept to maintain full compatibility with existing RAII wrappers like ScopedLock.
Description:
Introduce a new header-only module Futex and SharedFutex to provide high-performance synchronization primitives based on the Linux futex system call.
While Mutex and SharedMutex rely on the standard POSIX pthread layer, this implementation targets low-latency intra-process and inter-process locking on Linux.
Acceptance Criteria: