Skip to content

Add user-space locking primitives via Futex #202

@mrabine

Description

@mrabine

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions