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

add a configure check for std::timed_mutex

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Code
    • None
    • 0

    Description

      in libstdc++ std::timed_mutex and std::recursive_timed_mutex are only defined on platforms that define _POSIX_TIMEOUTS.

      In particular, OSX does not support _POSIX_TIMEOUTS. This means that mongod will not compile with libstdc++ on OSX.

      We should add a configure check for std::timed_mutex + std::recursive_timed_mutex and then fall back to Boost if they are not supported.

      libstdc++ bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65704

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: