PR libstdc++/64368
* include/std/shared_mutex (shared_timed_mutex::try_lock_for,
shared_timed_mutex::try_lock_until): Only define when POSIX thread
timeouts option is supported.
(shared_timed_mutex::try_shared_lock_for,
shared_timed_mutex::try_shared_lock_until): Likewise.
From-SVN: r220161
+2015-01-27 Jonathan Wakely <jwakely@redhat.com>
+
+ PR libstdc++/64368
+ * include/std/shared_mutex (shared_timed_mutex::try_lock_for,
+ shared_timed_mutex::try_lock_until): Only define when POSIX thread
+ timeouts option is supported.
+ (shared_timed_mutex::try_shared_lock_for,
+ shared_timed_mutex::try_shared_lock_until): Likewise.
+
2015-01-26 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/64368
return true;
}
+#if _GTHREAD_USE_MUTEX_TIMEDLOCK
template<typename _Rep, typename _Period>
bool
try_lock_for(const chrono::duration<_Rep, _Period>& __rel_time)
const auto __s_atime = __s_entry + __delta;
return try_lock_until(__s_atime);
}
+#endif
void
unlock()
return true;
}
+#if _GTHREAD_USE_MUTEX_TIMEDLOCK
template<typename _Rep, typename _Period>
bool
try_lock_shared_for(const chrono::duration<_Rep, _Period>& __rel_time)
const auto __s_atime = __s_entry + __delta;
return try_lock_shared_until(__s_atime);
}
+#endif
void
unlock_shared()