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: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Workload Scheduling
    • Workload Scheduling 2024-11-11

      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:
            drew.beckmen@mongodb.com Drew Beckmen
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: