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

Fix header comment for waitForConditionOrInterruptUntil

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Execution Team 2023-03-06

    Description

      The comment says:

           * If the operation deadline expires or the operation is interrupted, throws a DBException.  If
           * the given "deadline" expires, returns cv_status::timeout. Otherwise, returns
           * cv_status::no_timeout indicating that "pred" finally returned true.
           */
          template <typename LockT, typename PredicateT>
          bool waitForConditionOrInterruptUntil(stdx::condition_variable& cv,
                                                LockT& m,
                                                Date_t finalDeadline,
                                                PredicateT pred) {
      

      But the function returns a boolean.

      Attachments

        Activity

          People

            louis.williams@mongodb.com Louis Williams
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: