Description
This is currently done in
https://github.com/mongodb/mongo/blob/master/src/mongo/util/timer-inl.h:
...
|
#elif defined(_POSIX_TIMERS) and _POSIX_TIMERS > 0 and defined(_POSIX_MONOTONIC_CLOCK) and _POSIX_MONOTONIC_CLOCK > 0
|
|
|
// On systems that support the POSIX clock_gettime function, and the "monotonic" clock,
|
// use those.
|
#include "mongo/util/timer-posixclock-inl.h"
|
|
|
#else
|
...
|
It would be desirable to do this check during the SCons configuration phase and set a MONGO_HAVE_POSIX_MONOTONIC_CLOCK preprocessor variable if the "monotonic" clock is available.
Attachments
Issue Links
- is related to
-
SERVER-13762 Configure check for library rt is not done under Ubuntu C++11 build
-
- Closed
-