Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-72616

Remove futex usage in favour of std::atomic/AtomicWord::wait on TicketPool

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Storage Execution

      As part of SERVER-72067 we had to implement the TicketPool class using raw Linux futex syscalls due to not having C++20 atomics at the time.

      These calls should go away in order to use C++20 atomics once we can use them in the codebase in order to enable cross-platform usage pof the class. Right now these calls block PriorityTicketHolder from being multi-platform since they are tied to Linux.

      Places affected by this have been tagged to this ticket in the comments.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: