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

add a configure check for std::timed_mutex

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

      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@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: