A type is timed_mutexdetermined only if the platform supports it. GCC preprocessor conditions <mutex>are:
#ifdef _GLIBCXX_USE_C99_STDINT_TR1
, <stdint.h>
#if _GTHREAD_USE_MUTEX_TIMEDLOCK
, _POSIX_TIMEOUTS <unistd.h>.
, std::mutex, , undefined, , Cygwin Pthreads Timeouts.
, -, :
#include <unistd.h>
#if (defined(_PTHREADS) \
&& (!defined(_POSIX_TIMEOUTS) || _POSIX_TIMEOUTS <= 0))
#error
#endif
int main() { }
Cygwin . Cygwin Timeouts, , GCC, timed_mutex Cygwin.
: GCC 6 std::timed_mutex , _POSIX_TIMEOUTS. , Cygwin .