add a configure check for std::timed_mutex

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            Adam Midvidy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: